我正在使用pg_dump
备份并重新创建数据库的结构。为此,我正在呼叫pg_dump -scf backup.sql
进行备份。但是它失败,并显示以下错误:
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
我在任何地方都找不到参考此特定错误。可以解决这个问题吗?
编辑:对于更多情况,我以详细模式运行它,这是错误之前显示的内容:
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