草庐IT

postgreSql

全部标签

linux - Centos 7 上带有自定义 PGDATA 的 Postgresql 9.3

我正在尝试在Centos7上的自定义目录中设置Postgresql9.3服务器(通过yum安装),在我的例子中,该目录是在启动时安装的加密分区(/custom_container/database)。由于某种原因,Postgresql的行为与手册中应有的不同,并且在服务启动时出错。注意:它不想接受我设置的PGDATA环境变量,运行的时候su-postgres-c'/usr/pgsql-9.3/bin/initdb'(假定PGDATA目录归postgres:postgres所有)集群在默认目录/var/lib/pgsql/9.3/data/中初始化改变它的唯一方法是使用su-postgr

linux - Centos 7 上带有自定义 PGDATA 的 Postgresql 9.3

我正在尝试在Centos7上的自定义目录中设置Postgresql9.3服务器(通过yum安装),在我的例子中,该目录是在启动时安装的加密分区(/custom_container/database)。由于某种原因,Postgresql的行为与手册中应有的不同,并且在服务启动时出错。注意:它不想接受我设置的PGDATA环境变量,运行的时候su-postgres-c'/usr/pgsql-9.3/bin/initdb'(假定PGDATA目录归postgres:postgres所有)集群在默认目录/var/lib/pgsql/9.3/data/中初始化改变它的唯一方法是使用su-postgr

sql - 为 Postgres 9 安装 DBLink

有人可以阐明如何安装Postgres9(Centos)的要求,以便能够使用dblink进行inter-postgres数据库查询。一般来说,似乎没有关于如何安装dblink要求的清晰文档。提前致谢。 最佳答案 如果您有PostgreSQL9.1(或更高版本),请确保安装了contrib包,例如,从您的shell:yuminstallpostgres*contrib然后在数据库中,使用DDL创建扩展:CREATEEXTENSIONdblink; 关于sql-为Postgres9安装DBLi

sql - 为 Postgres 9 安装 DBLink

有人可以阐明如何安装Postgres9(Centos)的要求,以便能够使用dblink进行inter-postgres数据库查询。一般来说,似乎没有关于如何安装dblink要求的清晰文档。提前致谢。 最佳答案 如果您有PostgreSQL9.1(或更高版本),请确保安装了contrib包,例如,从您的shell:yuminstallpostgres*contrib然后在数据库中,使用DDL创建扩展:CREATEEXTENSIONdblink; 关于sql-为Postgres9安装DBLi

sql - 学习 PostgreSQL

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答它。关闭7年前。Improvethisquestion在Linux环境中开始学习PostgreSQL管理和编程的最佳起点是什么?哪些网站最值得推荐,简洁易学的教程?我已经通过使用SQLServer和MySQL熟悉了ANSISQL;但是,我以前从未接触过PostgreSQL。不胜感激。

sql - 学习 PostgreSQL

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答它。关闭7年前。Improvethisquestion在Linux环境中开始学习PostgreSQL管理和编程的最佳起点是什么?哪些网站最值得推荐,简洁易学的教程?我已经通过使用SQLServer和MySQL熟悉了ANSISQL;但是,我以前从未接触过PostgreSQL。不胜感激。

linux - 从 Postgresql 9.1 升级到 9.3 时为 "cannot write to log file pg_upgrade_internal.log"

每当我通过postgres用户运行以下命令时,我都会收到上述错误。/usr/lib/postgresql/9.3/bin/pg_upgrade\-b/usr/lib/postgresql/9.1/bin/\-B/usr/lib/postgresql/9.3/bin/\-d/var/lib/postgresql/9.1/main\-D/var/lib/postgresql/9.3/maincannotwritetologfilepg_upgrade_internal.logFailure,exiting我使用的是Ubuntu13.10。Postgresql9.1和9.3均正常运行。

linux - 从 Postgresql 9.1 升级到 9.3 时为 "cannot write to log file pg_upgrade_internal.log"

每当我通过postgres用户运行以下命令时,我都会收到上述错误。/usr/lib/postgresql/9.3/bin/pg_upgrade\-b/usr/lib/postgresql/9.1/bin/\-B/usr/lib/postgresql/9.3/bin/\-d/var/lib/postgresql/9.1/main\-D/var/lib/postgresql/9.3/maincannotwritetologfilepg_upgrade_internal.logFailure,exiting我使用的是Ubuntu13.10。Postgresql9.1和9.3均正常运行。

linux - PostgreSQL 无法启动 : "server.key" has group or world access

当我使用命令启动PostgreSQL时:$sudo/etc/init.d/postgresqlstartPg没有启动。报错是:*StartingPostgreSQL8.4databaseserver*ThePostgreSQLserverfailedtostart.Pleasecheckthelogoutput:2010-01-2122:10:00PSTFATAL:privatekeyfile"server.key"hasgrouporworldaccess2010-01-2122:10:00PSTDETAIL:Filemustbeownedbythedatabaseuserorroo

linux - PostgreSQL 无法启动 : "server.key" has group or world access

当我使用命令启动PostgreSQL时:$sudo/etc/init.d/postgresqlstartPg没有启动。报错是:*StartingPostgreSQL8.4databaseserver*ThePostgreSQLserverfailedtostart.Pleasecheckthelogoutput:2010-01-2122:10:00PSTFATAL:privatekeyfile"server.key"hasgrouporworldaccess2010-01-2122:10:00PSTDETAIL:Filemustbeownedbythedatabaseuserorroo