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

can't configure PGSync on PG16 standby node #542

Open
xmiao-cn opened this issue May 10, 2024 · 0 comments
Open

can't configure PGSync on PG16 standby node #542

xmiao-cn opened this issue May 10, 2024 · 0 comments

Comments

@xmiao-cn
Copy link

PGSync version: 3.1.0

Postgres version: PG 16.2

Elasticsearch/OpenSearch version: ES7

Redis version:

Python version:

Problem Description: We want to configure PGSync from PG16.2's standby node to sync data to ES, but the setup steps involve like ' select pg_current_xact(); select * from txid_current();' , maybe there are other statements , which can't be executed on the standby node. What should I do in this case? I can't configure PGSync on PG's primary node to avoid impacting the application running, only can do this sync on standby node. Thanks a lot .

Error Message (if any):

cannot execute pg_current_xct_id() during recovery....... "SELECT * from TXID_CURRENT();"

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

1 participant