📜  恢复备份“文本”postgresql 命令行 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:54.442000             🧑  作者: Mango

代码示例1
-- My solution was using DBeaver without using commands

psql -U username -d dbname < filename.sql

-- For Postgres versions 9.0 or earlier
psql -U username -d dbname -1 -f filename.sql