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

detecting version using sql #181

Closed
wesselvdv opened this issue Sep 28, 2020 · 3 comments
Closed

detecting version using sql #181

wesselvdv opened this issue Sep 28, 2020 · 3 comments

Comments

@wesselvdv
Copy link

wesselvdv commented Sep 28, 2020

Is there a way to detect which version of wal2json is installed using a sql statement?

@eulerto
Copy link
Owner

eulerto commented Sep 28, 2020

No, it is not. :(

The system view pg_available_extensions doesn't list wal2json because it doesn't have a control file. Since it doesn't need to install functions or other objects, I didn't provide the extension infrastructure.

Why kind of problem are you trying to solve?

@wesselvdv
Copy link
Author

We're trying to support different versions of wal2json for @graphile/subscription-lds. This npm package is using logical replication in combination with wal2json to provide live graphql subscriptions on tables. We're interested in utilising multiple newer options that will require us to validate if it's possible to use them beforehand. (version-format 2, include-pk)

@igouss
Copy link

igouss commented Dec 23, 2020

I think v1 format is here to stay because there are a few apps that depend on it.
However, eulerto should probably specify that v2 is the format to use for new apps. So you should specify that you support v2 only.

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

No branches or pull requests

3 participants