pgsync icon indicating copy to clipboard operation
pgsync copied to clipboard

sqlalchemy.exc.OperationalError

Open Pavangj959 opened this issue 3 years ago • 2 comments

PGSync version: 2.1.9

Postgres version: 14

Elasticsearch version:

Python version: 3.6

Problem Description: Hi All, When I executed the bootstrap --config schema.json, I am getting this error

Error Message (if any): sqlalchemy.exc.OperationalError: (psycopg2.errors.UndefinedFile) could not access file "test_decoding": No such file or directory

[SQL: SELECT * FROM PG_CREATE_LOGICAL_REPLICATION_SLOT(%(PG_CREATE_LOGICAL_REPLICATION_SLOT_1)s, %(PG_CREATE_LOGICAL_REPLICATION_SLOT_2)s)] [parameters: {'PG_CREATE_LOGICAL_REPLICATION_SLOT_1': 'postgres_userindex1', 'PG_CREATE_LOGICAL_REPLICATION_SLOT_2': 'test_decoding'}]

any help would be appreciated.

Thank You

Pavangj959 avatar Oct 17 '22 15:10 Pavangj959

Can you check that you have the test_decoding plugin installed in your PostgreSQL installation. Most PostgreSQL installations ship with this. Can you provide more details on your Postgres setup?

toluaina avatar Oct 18 '22 14:10 toluaina

Upgrade to version 15 aurora pg.

https://docs.aws.amazon.com/pt_br/AmazonRDS/latest/AuroraPostgreSQLReleaseNotes/AuroraPostgreSQL.Updates.html

Fixed an error when loading the test_decoding supports the pg_create_logical_replication_slot extension.

Fixed an issue that caused logical replication to fail when using the write cache.

LeoKaynan avatar Oct 10 '23 03:10 LeoKaynan

It got resolved by installing postgresql[version]-contrib package.

Pavangj959 avatar Jul 05 '24 15:07 Pavangj959