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

PostgreSQL Support #69

Closed
rregitsky opened this issue Apr 15, 2022 · 3 comments
Closed

PostgreSQL Support #69

rregitsky opened this issue Apr 15, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@rregitsky
Copy link

Our team is attempting to use a PostgreSQL Spanner database and discovered that there is currently no support for PostgreSQL on the Emulator. This lack of parity makes it prohibitively difficult to do local development in our environment.

@jdwyah
Copy link

jdwyah commented Jul 2, 2022

Would be nice to add this to the emulator or PostgreSQL docs. Been banging my head on this for a bit.

Is the answer to just run Postgres locally, not the emulator? And then use JDBC to connect?

fwiw the error I can't seem to get around is INVALID_ARGUMENT: Error parsing Spanner DDL statement: CREATE DATABASE "example-db" : Syntax error on line 1, column 17: Encountered '"example-db"' while parsing: identifier

@snehashah16 snehashah16 added the enhancement New feature or request label Aug 30, 2022
@skuruppu
Copy link
Collaborator

Thanks for reporting the issue. This is definitely something we're working on. But I don't have any timelines yet on when we'll be publishing the emulator support.

In the meatime, I can think of two options for local development.

  1. Run Postgres locally as @jdwyah mentioned. But note that some Postgres features are not supported in Spanner and some Spanner features like interleaved tables are not supported in Postgres.
  2. This may not be an option for everyone but you could also use a granular instance.

@skuruppu
Copy link
Collaborator

Thanks for your patience.

PostgreSQL support was released in v1.5.12.

Please file an issue if you run into any issues. There is a known issue that I reported in #148. Above that, please also check out the Features and Limitations section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants