我试图将一些文件导入到PostgreSQL数据库中,但是出现了这个错误:
Falha Importar:
SET
SET
SET
SET
SET
set_config ------------
(1 row)
SET
SET
SET
SET
SET
Import error: exit status 3 ERROR: unrecognized configuration parameter "default_table_access_method"
我试图将一些文件导入到PostgreSQL数据库中,但是出现了这个错误:
Falha Importar:
SET
SET
SET
SET
SET
set_config ------------
(1 row)
SET
SET
SET
SET
SET
Import error: exit status 3 ERROR: unrecognized configuration parameter "default_table_access_method"
pg_dump
。default_table_access_method
是在v12中引入的),但你可能会遇到其他新的v12功能而产生更有趣的问题。如果导入的其余部分没有错误,那么你可能没问题了,但要记住,降级PostgreSQL是不受支持的。sed -i 's/SET default_table_access_method = heap;/-- SET default_table_access_method = heap;/' <DUMP>
是一个可行的解决方案。 - AdamKalisz\if :VERSION_NUM >= 120000 ... \endif
中(应为多行)。请参阅https://www.postgresql.org/docs/10/app-psql.html。 - AntonK以下是我的解决方法:
对我来说这个方法可行。