-
Notifications
You must be signed in to change notification settings - Fork 846
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
Support CrateDB #320
Comments
I'm in favor of supporting PostgreSQL-like servers provided the changes required can be cleanly implemented. This has recently come up with RedShift SSL issues as well. In both these cases, it appears that the changes required would be localized to the connection code so it seems promising.
Thanks! So glad to hear it was helpful. I might have to write an update after PG10 is released. Transition table triggers have the potential to be much more efficient for certain operations. |
Resolved by #336. |
I tried the version of pgx with this patch - I still run into a similar error on https://github.com/jackc/pgx/blob/master/conn.go#L430 from initConnInfoEnumArray(). That query also is using the pg_type table without the schema pg_catalog and therefore initConnInfo() will still fail. |
@chetananand it seems like this is a regression introduced in ab9a1af . The problem with my patch is that it's not included in the automatic test suite, which only runs against postgres, not CrateDB. You might want to consider using f71bf5d for now. @jackc would you like me to submit another patch to fix the regression? |
Sure that'd be great.
I don't know how difficult this would be to add, but some optional tests that run against CrateDB would help those of us who don't use CrateDB from breaking it in the future. |
@jackc I've fixed the regression in #352 . I've also started to look into adding some cratedb testing to the Question: Would you be okay if I move some of the bash commands from the YAML file into a dedicated bash script? This might simplify things a bit. |
Sure. I don't have any strong opinions on that. |
Hi,
thanks for this great library :).
I'm currently working on implementing CrateDB support for influxdata/telegraf and was asked by the maintainers if I could use your library instead of
lib/pq
.Unfortunately it doesn't work because pgx queries the postgres catalog when creating a new connection, and CrateDB doesn't implement the catalog tables.
Please let me know how you feel about supporting CrateDB (or other databases pretending to be postgres on the protocol level). If you're interested, I might be able to contribute a patch. If not, feel free to simply close this issue.
Cheers
Felix
PS: I'm a huge fan of your writing. Your post Materialized View Strategies Using PostgreSQL gave me the inspiration to migrate a large project (> 1 billion rows) from NoSQL to PostgreSQL. The migration was a huge success, and the analytics queries are blazing fast thanks to to some eager materialized views :).
The text was updated successfully, but these errors were encountered: