我正在尝试从 Postgres 9.4 转储模式,在 Cents 6.5 上运行,但出现错误:
pg_dump:找不到匹配的模式
这是我正在运行的命令:
pg_dump -U postgres -n "OLD-TODELETE-bushes" --verbose site > output_nf
Run Code Online (Sandbox Code Playgroud)
我对此有点困惑,因为当我运行时select schema_name from information_schema.schemata
,我可以看到架构名称。
如果我为所有模式运行 pg_dump,则按OLD-TODELETE-bushes
预期将其转储到文件中。
Postgres 日志中没有错误。
谁有想法?