我有三个版本的Postgres(8.4,9.0,9.1)在我的Ubuntu机器上运行。 每个版本都configuration为在不同的端口上侦听。 当我重新启动机器时,只有9.0版本自动启动。 我可以通过“sudo /etc/init.d/postgresql start 9.1”手动启动其他版本,但我无法弄清楚在服务器启动时将parameter passing给脚本的configuration在哪里。 有人在那里必须知道。
我想编写一个脚本来检查我的归档WAL文件中的空白,但是我找不到编号scheme的任何文档。 它看起来相当简单,但是我希望将我的脚本从一些官方文档中删除,这样我就不会错过任何隐藏的滚动复杂等。
我在Windows XP上使用默认的PostgreSQL安装。 不幸的是,本地化(非英文)消息无法在SQL Shell中正确显示,也无法在应用程序运行时在诊断消息中正确显示。 可以做些什么来使Postgre显示消息正确? 示例消息:
当试图启动PostgreSQL时,我得到这个'空'的错误信息: root@mountain-lion:/home/ubuntu# service postgresql start * Starting PostgreSQL 9.1 database server * Error: could not exec /usr/lib/postgresql/9.1/bin/pg_ctl /usr/lib/postgresql/9.1/bin/pg_ctl start -D /vol/postgres -l /var/log/postgresql/postgresql-9.1-main.log -s -o -c config_file="/etc/postgresql/9.1/main/postgresql.conf" : 这是一个新安装的Ubuntu 11.10服务器(在EC2 / Scalarium上), postgresql-9.1只是通过apt-get安装。 postgresql.conf中有一个更改configuration值: data_directory = '/vol/postgres' /vol/postgres看起来像这样 drwx—— 5 postgres postgres 38 2012-05-18 15:13 base drwx—— 2 postgres postgres 4096 2012-05-18 15:13 global drwx—— […]
我有一个与Gearman 0.32(ppa:gearman-developers / ppa)的问题 – 它不保存队列在Postgres的队列持久性。 Gearman正在运行,我可以添加作业(为了更好的可读性,在pastebin上使用了DEBUG详细程度的示例: http : //pastebin.com/3uRds4yi ) Postgres连接string是好的 – 我设法使用相同的主机相同的数据login/访问数据库 Gearman连接到Postgres – 如果DB中不存在队列表,它会创build它。 尽pipe没有任何东西被添加到数据库。 我有0名工作人员注册,当我添加新的作业队列,他们排队,但从未保存在持久性存储。
我是新来使用postgresql与PHP,但似乎不在这里。 9/10例子我见过使用纯文本设置password参数。 例如,这里有一个示例 $con = pg_connect("host='localhost' dbname='testdb' user='postgres' password='password'); 这是常见的做法吗? 这是否构成安全风险? 如果是这样,有没有更好的方法来传递password值?
我在Ubuntu 12.04上运行postgresql 9.1。 我想改变postgres的数据目录。 所以我创build了一个新的目录并运行initdb。 我也做了证书的数据目录的符号链接。 但仍然postgres不能findroot.crt: sudo /etc/init.d/postgresql start * Starting PostgreSQL 9.1 database server * The PostgreSQL server failed to start. Please check the log output: 2012-08-17 16:02:33 CEST FATAL: could not load root certificate file "root.crt": no SSL error reported 我究竟做错了什么? 数据directoy看起来像这样: ls -la total 92 drwx—— 13 postgres postgres 4096 Aug […]
所以。 我有一个问题 。 没有给出任何输出,PostgreSQL 8.4将不会启动或重新启动。 但它的工作3个月,直到主机提供商不重新启动服务器。 现在它已经完全破碎了。 它不会启动,不会给出任何输出或日志。 pg_dump: [archiver (db)] connection to database "postgres" failed: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? 现在我想备份(或者只是启动pgsql套接字)我的数据库重新安装postgesql。 怎么样?
我正在研究创build一个PostgreSQL数据库镜像(在Amazon EC2上运行),我已经听说了XFS的好处。 但是,由于最终你运行在虚拟机上,所以EC2上XFS的增长可能不如准系统。 我将看到EC2上XFS的重大改进?
这是一个数据库(Postgre)虚拟机,其数据存储在一个单独的EBS卷上。 我可以这样做,以便相同的EBS卷自动挂载(这是假设没有其他实例正在使用该EBS)。 这样做的原因是数据库启动时会有数据文件可用。