问题标签 [pg-restore]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
odoo-8 - 如何修复“HttpRequest”对象在 Odoo 中没有属性“endpoint_arguments”?
我得到了一个数据库备份(带有文件存储)、文件存储文件夹和另一个文件夹,其中包含该数据库上已安装的模块。
我预计将在没有更多数据的情况下在 Odoo 8 中恢复该备份。所以我所做的是创建拥有数据库表的 PostgreSQL 角色并为其提供足够的权限(登录、创建数据库、复制)。然后我创建了一个 Odoo 配置文件。在其中,我将这个新的 PostgreSQL 角色设置为 indb_user
并将其密码设置为db_password
. 我添加了存储文件存储data_dir
的路径,以及包含所有模块的文件夹的路径addons_path
。
由于没有给我启动器文件,我复制了我拥有的其他 Odoo 实例的OCBodoo.py
文件夹并使用它的文件来启动 Odoo。
新实例似乎运行良好,但现在我刚刚恢复了数据库,我得到了这个错误:
我在谷歌上搜索了很多,但除了其他论坛中未回答的问题外,我找不到任何关于它的信息。
有谁知道这是怎么回事?
postgresql - pg_restore 重复键和无效命令错误
Postgres 版本:
我们使用 vm 转换器将我们的系统从一台服务器转移到另一台服务器(具有更好的 cpu 和 ram),当我尝试备份数据库时出现错误:
我使用它来解决它reindexdb
,在我尝试之后pg_dump -U postgres my_db > /home/mydb.backup
它是成功的。然后我尝试恢复数据库以确保备份有效
并有一个错误:
如何解决?
postgresql - 是否可以在不覆盖现有数据的情况下恢复 PostgreSQL 数据?
我有 2 个备份文件,我想将所有这些数据合并到我的数据库中。
我尝试使用 pg_restore 但是当我使用第二个数据库文件时,我丢失了第一个数据集。
寻找我的命令:
我还搜索了 pg_restore 命令的所有选项标志,但我找不到一些有用的东西
postgresql - 恢复数据库 PgAdmin4
我正在尝试在 PgAdmin 4 中恢复数据库并收到错误“[Errno 2] 没有此类文件或目录”,我假设与备份文件有关,该文件位于 /Users/myuser/Downloads/dbupload (安装了 PostgreSQL在我的本地机器上)。这让我相信问题不在于文件,而在于文件的链接。
在 pgadmin 3 中一切正常,考虑到几周前 pgadmin 是相关的,我在网上没有得到太多支持。
非常感谢任何帮助。
postgresql - pg_restore 找不到输入文件“X”没有这样的目录或文件
首先我对 pgadmin 和 postgresql 比较陌生
所以我用 pgadmin 以纯文本形式完成了备份,它将我需要的数据从一个表转储到一个名为 lodging 的文件中。它来自我们实时服务器的一个plans_to_lodge 表。现在要测试一个新的 Web 应用程序前端,我想对其进行 pg_restore 但这就是我得到的
该文档没有给出表恢复的示例,是的,该文件位于 C 驱动器中的该位置
postgresql - Postgres - 从转储文件复制表
我有一个使用 pg_dump 生成的数据库转储,如下所示:
我希望将一个表从它复制到我的本地数据库中,只有数据(不是模式)并且没有所有权设置。我熟悉如何使用 pg_dump 直接从另一个数据库执行此操作,例如:
但我不确定如何从文件中复制相同的效果。
我试过类似的东西:
但出现错误:
我不确定如何使用 psql 来实现相同的目的。帮助将不胜感激。
linux - 无法在远程 Linux VM 上 pg_restore SQL 文件
我使用 PostgreSQL 作为我的数据库。
我在我的远程 Ubuntu VM 上创建了一个.sql文件。
我做了sudo su - postgres
并创建了一个数据库。
然后我切换回我的原始帐户并尝试了这个:
sudo -su postgres pg_restore < temp.sql
命令运行成功。
但是当我再次切换回postgres用户并使用\dt检查数据库中的表列表时,我发现没有表。
我究竟做错了什么?
postgresql - 输入文件似乎是文本格式转储。请使用 psql
我使用备份
然后我使用 scp 将它复制到本地主机。
现在,当我在本地数据库上导入时,它会出现错误
通过使用命令行
postgresql - pg_restore with -C option does not create the database
I am using pg_dump and pg_restore for backup and restore of postgres database.
Here is some information from documentation that will be relevant for this question For Pg_restore, -C option is described as follows
-C
--create
Create the database before restoring into it. If --clean is also specified, > > drop and recreate the target database before connecting to it. When this option is used, the database named with -d is used only to issue the initial DROP DATABASE and CREATE DATABASE commands. All data is restored into the database name that appears in the archive.
However even when I use this option with pg_restore, I get following error
pg_restore: [archiver (db)] connection to database "test" failed: FATAL: > database "test" does not exist
As per the description the -C option should have created the missing database. However it does not in my case.
Following are the steps that I did for backup and restore:
- Use pg_dump to backup database
Note: not using -C option since it is meaningful for the plain-text formats only
Deleted the test database
use pg_resore to restore database
/li>
I cannot understand what is the issue here! Am I doing anything wrong ? Let me know if more information is needed.
postgresql - postgres pg_restore 追加数据
我有一个使用pg_dump
自定义格式创建的 pg 备份。我正在尝试使用pg_restore
仅数据恢复到已经有一些数据的数据库中。这在数据库和转储中存在相同数据(某些行)的情况下会失败。有没有办法忽略这些行并继续恢复其余数据?