Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: document support for different postgres flavours #411

Closed
shahidhk opened this issue Sep 11, 2018 · 14 comments
Closed

docs: document support for different postgres flavours #411

shahidhk opened this issue Sep 11, 2018 · 14 comments
Assignees
Labels

Comments

@shahidhk
Copy link
Member

shahidhk commented Sep 11, 2018

There are many flavors of postgresql which graphql-engine might support out of the box or with slight configuration/modifications. We need to document for each of them.

TimescaleDB
Yugabyte
Aurora - Postgres
CockroachDB
CitusDB
CrateDB
PipelineDB

Current status (note that these have not been officially tested by Hasura and are based on empirical usage):

@duyleekun
Copy link

duyleekun commented Dec 5, 2018

CockroachDB hasn't supported user defined schema

 {"internal":{"statement":"CREATE SCHEMA hdb_catalog","prepared":false,"error":{"exec_status":"FatalError","hint":"See: https://github.com/cockroachdb/cockroach/issues/26443","message":"unimplemented at or near \"hdb_catalog\"","status_code":"0A000","description":"source SQL:\nCREATE SCHEMA hdb_catalog\n              ^"},"arguments":[]},"path":"$","error":"postgres query error","code":"postgres-error"}

@Smerity
Copy link

Smerity commented Dec 14, 2018

I could imagine scenarios where as a start-up scales they might shift to CockroachDB from Postgres. From a read and most of a write point of view would it not remain compatible with GraphQL? How frequently are user defined schema changes required in standard Hasura + Postgres operation?

The other feature that would disappear is the live subscription capability but that is an optional extra and Hasura has strong value even without it.

@shahidhk
Copy link
Member Author

Thanks for reporting this @duyleekun.

@Smerity Hasura stores all the metadata on a separate schema called hdb_catalog.

Looks like this is a planned feature on CockroachDB. Should land soon.

See cockroachdb/cockroach#26443 and cockroachdb/cockroach#30916

@Disturbing
Copy link

Hey Guys - is it possible to do the creation of the hdb_catalog as a create db versus create schema to support cockroach?

@shahidhk
Copy link
Member Author

@Disturbing It will be a big change to the internals. Not something we can immediately support.

@Disturbing
Copy link

Disturbing commented Mar 27, 2019 via email

@shahidhk
Copy link
Member Author

@Disturbing When Hasura connects to a Postgres instance, the connection is database scoped. It cannot access another database outside of the given one. Hence the logical choice would be to use the namespacing available within a database which is a schema.

@Disturbing
Copy link

Thanks - makes sense.

@marionschleifer marionschleifer self-assigned this Jul 10, 2019
@marionschleifer marionschleifer added p/medium non-urgent issues/features that are candidates for being included in one of the upcoming sprints e/intermediate can be wrapped up in a week labels Jul 10, 2019
@adamfeldman
Copy link

Hasura is now supported by YugaByte (Postgres-based distributed SQL DB):

https://docs.yugabyte.com/latest/develop/graphql/hasura

(I haven't personally tested this yet)

@adamfeldman
Copy link

adamfeldman commented Mar 31, 2020

Looks like this is a planned feature on CockroachDB. Should land soon.

See cockroachdb/cockroach#26443 and cockroachdb/cockroach#30916

FYI for others who are waiting for this: CockroachDB might implement user-defined schemas sometime in 2020: cockroachdb/cockroach#30916 (comment)

@zicklag
Copy link

zicklag commented Jun 24, 2020

Do all features of Hasura work on Yugabyte? What about this issue: yugabyte/yugabyte-db#1872?

@gagandeep
Copy link

CockroachDB user-defined schemas RFC got merged in May. cockroachdb/cockroach#30916

Should Hasura works on CockroachDB now?

@marionschleifer marionschleifer changed the title document support for different postgres flavours docs: document support for different postgres flavours Dec 8, 2020
@marionschleifer marionschleifer removed their assignment Dec 8, 2020
@marionschleifer marionschleifer added c/postgres and removed e/intermediate can be wrapped up in a week p/medium non-urgent issues/features that are candidates for being included in one of the upcoming sprints labels Dec 8, 2020
@c-nv-s
Copy link

c-nv-s commented Feb 10, 2022

is it possible to reopen the ticket for adding support for cockroachdb considering thier project manager and dev stated they are seeking to make it compatible? or is there some other serious blocker to making it work?

@marionschleifer
Copy link
Contributor

We document Postgres + compatible databases here.

hasura-bot pushed a commit that referenced this issue Mar 27, 2024
An upcoming version of ndc-spec will split out this module as a new
crate named `ndc_models`. This PR gets ahead of this change by aliasing
so that we can simply delete the `use` lines in the future.

This is a very boring, mechanical change that does not modify any
behavior at all.

V3_GIT_ORIGIN_REV_ID: 078d3f5fbc2961fcd93b924134de40ba693f0061
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests