Articles of postgresql

你使用哪个数据库用户连接到pgAdmin3? (PostgreSQL9 / CentOS6)

我在CentOS6中安装了pgAdmin3。 我正在使用PostgreSQL9。 我的问题是,我无法添加服务器到pgAdmin3。 它给了我一个错误: 我没有为用户“postgres”密码,但我已经创build了一个postgresql用户就像我的普通Linux用户,我可以使用“psql”: [andre@andre ~]$ psql psql (9.0.4) Type "help" for help. andre=> \q [andre@andre ~]$ 我的问题是:如何在CentOS6中使用pgAdmin3。 有什么窍门? 我必须input用户“postgres”? 给我个提示。 最好的祝福,

nginx / node.js / postgres,可伸缩性问题?

我有一个应用程序运行: 一个nginx实例作为前端(服务静态文件) 后端的一个node.js应用程序集群(使用cluster和expressjs模块) Postgres作为DB的一个实例 如果应用程序需要可伸缩性(这仅适用于HTTP / REST请求),那么这种体系结构是否足够: 每秒500个请求(每个请求只从数据库中获取数据,这些数据可能是几个ko,并且在获取之后不需要大的计算)。 20000个用户同时连接 哪里可能是瓶颈?

尝试更新postgresql-libs时出错

当我做yum update ,出现以下错误: Transaction Check Error: file /usr/lib64/libecpg.so.6.1 from install of postgresql-libs-8.4.10-1PGDG.rhel5.x86_64 conflicts with file from package postgresql84-libs-8.4.9-1.el5_7.1.x86_64 file /usr/lib64/libecpg_compat.so.3.1 from install of postgresql-libs-8.4.10-1PGDG.rhel5.x86_64 conflicts with file from package postgresql84-libs-8.4.9-1.el5_7.1.x86_64 file /usr/lib64/libpgtypes.so.3.1 from install of postgresql-libs-8.4.10-1PGDG.rhel5.x86_64 conflicts with file from package postgresql84-libs-8.4.9-1.el5_7.1.x86_64 file /usr/lib64/libpq.so.5.2 from install of postgresql-libs-8.4.10-1PGDG.rhel5.x86_64 conflicts with file from package postgresql84-libs-8.4.9-1.el5_7.1.x86_64 file […]

很多时候我的web应用程序的数据库PostgreSQL失败

我有像web应用程序 Nginx (proxy) + Tomcat (backend) + PostgreSQL (database). 这个Web应用程序位于亚马逊免费层实例( http://aws.amazon.com/free/ )上,PostgreSQL每月要经常从2到3次。 以下是来自实例的日志: [516661.377137] DMA free:2464kB min:80kB low:100kB high:120kB active_anon:5752kB inactive_anon:5900kB active_file:88kB inactive_file:164kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15868kB mlocked:0kB dirty:0kB writeback:0kB mapped:244kB shmem:248kB slab_reclaimable:8kB slab_unreclaimable:260kB kernel_stack:60kB pagetables:40kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:384 all_unreclaimable? yes [516661.377273] lowmem_reserve[]: 0 594 594 594 [516661.377293] Normal free:2976kB min:3076kB low:3844kB high:4612kB active_anon:289468kB […]

在Amazon EC2上编译PostgreSQL 9.0.2没有服务或启动脚本

我在EC2上构buildpostgresql,运行正常。 不过,我已经从'pg_ctl start / stop'手动控制它,因为似乎没有configuration服务或明显的方式来configuration数据库服务器在启动时启动并在关机时停止。 我搜查了一下,什么也找不到。 我必须做一个吗? 如果是这样,怎么样?

数据库在PostgreSQL的COPY期间不可浏览

当使用COPY还原CSV文件时,phppgadmin显示真实的数据库大小(4GB),但是当我select浏览表格时,显示Estimated row count为0.我做了一个VACUUM ANALYZE 。 简单的SELECT查询返回0行,但数据库大小为4GB。 也: SELECT count(*) FROM tbl_data 返回0.任何人都可以帮忙?

如何或在哪里得到postgres交互temrinal(psql)中的所有\ d命令的列表?

我曾经看到一个很好的网站,显示了所有\d命令的列表,例如所有表格的\dt和函数的\df 。

pg_dumpall,你如何指定一个不同的集群

运行pg_dumpall使集群“主”的备份,但我有另一个集群“自定义”。 我如何使pg_dumpall产生“自定义”的备份?

连接到Postgres EC2数据库

我正在尝试连接到AMAZON EC2上托pipe的数据库: ec2-xx-xx-xxx-xxx.xxxx-1.amazonaws.com/companyName 我已被授予此用户和密码。 What is the best way to connect to a database on this server? 我试过这个工具: http://www.razorsql.com/register5.html 还有postgres客户端连接。 非常感谢你的指导/

postgres:如何在文本列中存储乳胶代码

我试图把一些Latex代码放在PostgreSQL数据库中。 创build一个与cid作为串行types和code_text作为文本types的表。 INSERT语句后 INSERT INTO texcode (code_text) VALUES ('\document example'); 我收到了一个关于声明中错误逃脱的警告。 一个 SELECT code_text from texcode; 回报我 "document example" 我如何解决这个问题? (我使用ruby脚本来导入我的旧tex文件,所以上面这个例子只是为了演示。)