cost 77 ms
Windows pg_dump postgres 错误:pg_restore:错误:输入文件似乎不是有效的存档 - Windows pg_dump postgres bug: pg_restore: error: input file does not appear to be a valid archive

在 postgres 上使用pg_dump和pg_restore将数据库从我本地的 Windows 机器移动到 Linux 服务器似乎很简单: 吐出一个文件。 然后上传: pg_restore:错误:输入文件似乎不是有效的存档这在 Linux 到 Linux 上完美运行。更改文件类型没有区别。 改 ...

`pg_restore` 命令中 `--jobs` 的大概值 - Ballpark value for `--jobs` in `pg_restore` command

我正在使用pg_restore将数据库恢复到其原始 state 以进行负载测试。 我看到它有一个--jobs=number-of-jobs选项。 我怎样才能大致估计这个值在我的机器上应该是多少? 我知道这取决于一系列因素,例如机器、数据集,但最好能有一个概念性的起点。 我在 MacBook Pro ...

使用 sudo 权限在后台运行带有 nohup 的 pg_dump - Running pg_dump with nohup in the background with sudo privileges

我想使用 pg_dump 转储一个相当大的数据库(1 TB)。 问题是通过 vpn,超时。 所以我想通过 nohup 运行它并且没有运气。 这是基本命令: 我尝试过的事情 1) 将 nohup 放在开头,& 放在最后 2) 将命令放入 bash 文件并尝试运行 bash 3) 各种排列组合 ...

如何在 pg_dump 后使用 pg_restore 和 github 操作清理数据库 - how to clean database after pg_dump with pg_restore with github actions

我将为数据库 A 进行备份,并将备份放入数据库 B,在将备份放入 B 之前,我将使用 GitHub 操作中的工作流清理 B 我试试这个。 但是 GitHub 告诉我 pg_restore 没有选项如何在将备份放入 B 之前清理我的数据库 B? Github 动作说: 所以清洁不起作用? 我怎样才能 ...

当数据库中已有数据时,Django 从 1 开始主键 - Django starts primary key from 1 when there is already data in database

我有一个使用 Django迁移创建的 pg 数据库,所有表都已成功创建并且一开始是空的。 现在我必须从pgdump创建的数据库备份中填充其中一个表。 该数据库有一个包含数据的表事务(考虑没有 FK,并且表的架构相同),因此使用 pgrestore,我只从数据库备份中恢复了该事务表。 所有恢复的内容 ...

PostgreSQL:可以只用 PostgreSQL 恢复大对象吗? - PostgreSQL : it is possible to restore only Large Object with PostgreSQL?

我们有一个简单的表my_table ,例如: 不幸的是,我们中的一个承包商对my_table的列object_id中的大对象的 ID 运行lo_unlink 。 大对象 ID 仍在表中,但关联的大对象不再存在: 我们每晚都使用pg_dump进行备份。 我们如何使用pg_restore只恢 ...

pg_restore:错误:选项 -d/--dbname 和 -f/--file 不能一起使用 - pg_restore: error: options -d/--dbname and -f/--file cannot be used together

我对 postgres 有点陌生,并且在使用pg_restore恢复带有备份数据的本地数据库时遇到了麻烦,希望能得到一些帮助。 我的情况如下: 我在 Docker 上运行了 postgres,我可以访问 pgadmin。 我在 pgadmin 中创建了一个名为 'flocal' 的新服务器 ...

如何修复在客户端主目录“/usr/lib”(/usr/lib) 中找不到执行进程实用程序“pg_restore”时出错? - How to fix Error executing process Utility 'pg_restore' not found in client home '/usr/lib' (/usr/lib)?

我想恢复数据库备份,我正在使用 ubuntu 20.04、dbeaver 和 postgresql 12。 当我想添加Local client然后Add home时,我得到permission denied error 运行命令which psql导致/usr/bin/psql 。 我知道 po ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM