Greenplum's pg_dump cannot support lock statement

304 Views Asked by At

I'm using pg_dump to backup and recreate a database's structure. To that end I'm calling pg_dump -scf backup.sql for the backup. But it fails with the following error:

pg_dump: [archiver (db)] query failed: ERROR:  Cannot support lock statement yet
pg_dump: [archiver (db)] query was: LOCK TABLE my_schema.my_table IN ACCESS SHARE MODE

I couldn't find reference this particular error anywhere. Is it possible to get around this?

edit: for a little more context, I ran it in verbose mode, and this is what is displayed before the errors:

pg_dump: last built-in OID is 16383
pg_dump: reading extensions
pg_dump: identifying extension members
pg_dump: reading schemas
pg_dump: reading user-defined tables
0

There are 0 best solutions below