PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness. It runs on all major operating systems, including Linux, UNIX ...

learn more… | top users | synonyms (1)

0
votes
0answers
6 views

how to query postgresql database via salt

I need to run a query on a postgresql database in a module I'm writing for Salt. It won't do much, just query a table for a value to determine what version of the software is installed. The docs have ...
0
votes
1answer
9 views

OpenShift allow permanent external access to PostgreSQL

I have an OpenShift gear with Nginx and PostgreSQL, and need to allow a Java applet (served from Nginx) direct access to the PG database. I've already tried to edit ...
1
vote
0answers
22 views

Changing kernel.shmmax and kernel.shmmal on ubuntu?

We have an Ubuntu server with 6GB of RAM. We are trying to install Postgres but it is advising us to increase the values for kernel.shmmax and kernel.shmmal. The server is solely a Postgres DB ...
-1
votes
0answers
14 views

Use different command binaries

I have two version of postgresql: 9.2 and 9.3. I need to use psql to connect to local posgresql 9.3 db but psql is used from 9.2 installation. psql 9.2 is located in /usr/bin/psql psql 9.3 is ...
0
votes
1answer
12 views

Daily postgresql cron error log file

I am getting these emails daily: /etc/cron.daily/logrotate: error: error accessing /var/log/postgresql: No such file or directory error: postgresql-common:1 glob failed for /var/log/postgresql/.log ...
0
votes
0answers
11 views

.pgpass other system user as in file

i have a working script with a working .pgpass file. Now i want to run the script as root with the same(copy) .pgpass file. I copied the file in the $HOME directory from root. And changed permission ...
-6
votes
1answer
33 views

Advice for server setup [closed]

I was ask to setup a server with centos, Postgres, tomcat, and a few more. I will be given 2 SSD but they won't be mirrored or raid instead they want me to clone the first drive to the second then ...
0
votes
1answer
12 views

pg_createcluster ssl cert behaviour different for 9.1 and 9.3 on Debian Squeeze

I think i found a bug in pg_createcluster when creating a 9.3 cluster. At first, my configuration: Debian Squeeze with PostgreSQL 9.1 from squeeze-backports and PostgreSQL 9.3 from apt.postgresql.org ...
1
vote
0answers
13 views

psql: How to include comments in \d output

In PostgreSQL it is possible to add comments to table columns. These will appear in the psql output from the "extended describe" \d+ command, however they will not appear in the standard \d output. ...
2
votes
2answers
52 views

How to minimize bandwidth in frequent postgres backup scenario?

I'm looking to make very frequent backup (every hour) of postgres data on several VMs (say 20-50) towards the same archive server. Here are more data if needed: Ideally, the system should support ...
0
votes
1answer
17 views

How to correctly run PostgreSQL on Fedora

I decided to to run PostgreSQL on my Fedora 20, so I did sudo yum install postgresql-server.x86_64 postgresql-libs.x86_64 postgresql.x86_64 Now if I do postgres -D /var/lib/pgsql/data under ...
1
vote
1answer
45 views

Databbase file structure on disk [closed]

I'm an interested in the fundamentals of databases for a project that I am currently working on. Specifically the physical storage on disk and how rows and indexes are stored in a file. For the most ...
1
vote
1answer
49 views

CentOS / PostgreSQL. How to keep connections open?

I would like to keep connections open on PostgreSQL for N time. I am not having problems keeping PostgreSQL itself open. The issue is that when the connection is idle for a few minutes, the ...
18
votes
2answers
1k views

Customer wants open postgresql port, how to make that secure?

So, this is the situation. It seems, we need to have an open tcp port 5432 for the world, where a customer has access to his postgresql database. Because obvious reasons, we can't say just "no", only ...
0
votes
0answers
31 views

pg_top does not show any postgres processes

postgres/postgresql is running but pg_top (pg_top -d postgres -U postgres) does not show any processes top: 1283 postgres 20 0 235m 5392 5204 S 2 0.0 881:17.41 postgres pg_top: last pid: 23462; load ...
1
vote
1answer
29 views

Postgresql failed to start server (startserver.vbs) on Windows Server 2008 R2 Enterprise (64b)

Trying to install postgresql in a Windows Server R2 Entreprise (64b) I get this: Iniciando el servidor de bases de datos... Executing cscript //NoLogo ...
0
votes
0answers
34 views

`rake db:migrate RAILS_ENV=production` gives error

When I run the command: rake db:migrate RAILS_ENV=production I get the following error: rake aborted! PG::ConnectionBad: could not connect to server: Connection refused Is the server running ...
-2
votes
0answers
26 views

postgresql does not start after reboot ubuntu [closed]

I have just rebooted my ubuntu server, and now I can't get postgresql service working: sudo /etc/init.d/postgresql start * Starting PostgreSQL 9.1 database server * The PostgreSQL server failed to ...
2
votes
1answer
101 views

Cannot stop service (PostgreSQL) in Ubuntu 14.04 minimal OpenVZ

I'm trying to stop PostgreSQL but this results in a weird error about /proc/: root@dw0wanydbpv14fred:~# service postgresql stop * Stopping PostgreSQL 9.3 database server * Error: /proc must be ...
-2
votes
1answer
84 views

Why am I getting this 404 error trying to install postgresql 8.2 on centos 6?

Im trying to install postgresql 8.2 on centos 6 but when i add the repo for it and do a yum upgrade or try to install the package i get the following error yum upgrade Failed to set locale, ...
0
votes
1answer
66 views

Stop postgresql container

I have a question about stop database container. I have a docker image that runs postgresql. When I create a container with this image: sudo docker run --name db -d asg1612/postgresql it run ...
0
votes
1answer
21 views

A more complex PostgreSQL query log

There are some laws in my country that require me (as a service provider) to have a log which explains which person did what action. Now I know that PostgreSQL has a query log, but I was wondering if ...
0
votes
2answers
27 views

PostgreSQL password issue with psql

I'm trying to setup PostgreSQL onto a CentOS (that I connect through SSH). I need to unzip a package (so not downloading through yum or rpm): ...
0
votes
1answer
39 views

Corosync and Pacemaker deployment

I'm currently working on a deployment architecture for a Postgres HA 1 Master/ 1 Slave scenario. After reading lots and lots of documentation I've decided to start using Pacemaker in conjunction with ...
0
votes
1answer
50 views

PostgreSQL user authentication against PAM

I am trying to set up authentication via PAM for PostgreSQL 9.3. I already managed to get this working on an Ubuntu 12.04 server, but I am unable to get this working on a Centos-6 install. The ...
0
votes
0answers
15 views

PostgreSQL replicate data have different time

I'm notice that when I replicate data between 2 server with different time zone, the time data in PostgreSQL is shifted when I load it to a client (in my case, a Rails console). I thought all ...
0
votes
1answer
29 views

Multiple Postgres Servers (one writer, multiple reader) with Shared Disk

Here's the scenario: One shard disk (Gluster) Multiple Postgres servers Requirements: Use the shared disk to store the database files Use a configuration which provide maximum efficiency ...
0
votes
1answer
44 views

Unaccent for postgresql 9.0.8 (over RHEL6)

I need to install the unaccent extension in a postgresql server 9.0.8 running over a RHEL6 box which doesn't have the contrib package. So I need to install postgresql-crontrib first. Facts: Server ...
0
votes
1answer
67 views

Weblogic security store on PostgreSQL

I am trying to port a Weblogic environment from Oracle to PostgreSQL. When I configure a domain with the security store on PostgreSQL, it fails to start. Weblogic 12c, Java 7, PostgreSQL 9.3.4 here ...
1
vote
1answer
65 views

PostgreSQL failed to start, pg_log shows nothing, what to do?

I've just setup PostgreSQL (9.3) as a replication to another server. When I started it with service postgresql-9.3 start, it reported [FAILED] without any further explanation. I don't see any thing ...
2
votes
1answer
54 views

psycopg2 not found by django after installing in virtualenv

I want to use postgresql with django so did the following: sudo apt-get install libpq-dev python-dev sudo apt-get update workon myenv sudo pip install psycopg2 And after configuring my settings.py ...
0
votes
1answer
236 views

Connect to RDS from EC2 instance — both inside VPC

I have a VPC with two private subnets (two were required to get an RDS instance set up). I have a security group for this VPC, let's call it vpc-sg. vpc-sg allows TCP access on port 22 from my home ...
-3
votes
1answer
92 views

Psql uses .pgpass file however pg_dump does not, and it also does not connect using the correct password [closed]

Using the following command: % pg_dump -h postgres.cs.host.ca -p 5433 -n _cscf_subscription -Fc -f ~/old.dump odyssey_prod Password: pg_dump: [archiver (db)] connection to database "cs-rsub" failed: ...
3
votes
1answer
113 views

`psql` expanded mode equivalency for `mysql`

Am frustated by things like: 0:33:1407402356:root@ahost:~# echo 'use wordpress_3_6_1; select * from wp_posts;' | mysql -u mysqluser -pmysqlpasswdord | wc -l -L 42 40585 SQL query results being ...
0
votes
0answers
149 views

java.lang.ClassNotFoundException: org.postgres.Driver when starting PuppetDB

When I start puppetdb I am getting the following error: cat /var/log/puppetdb/puppetdb.log 2014-08-06 11:29:50,558 ERROR [main] [utils.logging] Uncaught exception java.lang.ClassNotFoundException: ...
0
votes
1answer
39 views

Which package to upgrade psql client?

I have updated my Postgres install from 8.4 to 9.3. Now when I log onto the server with the initial command sudo -u postgres psql template1 I get the following error psql (8.4.18, server ...
0
votes
2answers
22 views

OpenNMS installation failure

I am willing to use OpenNMS to monitor my network. Monitoring it fully from the router to the nodes from a computer will be connecting the network as node not as administrator and that computer using ...
0
votes
0answers
25 views

Bucardo status does not feel if the slave is down

I am using bucardo as third party to postgresql replication between two sites. everything ok except buacrdo status <sync_name>. I have a Master-slave sync on master server. when I poweroff the ...
0
votes
0answers
53 views

Remove pgdg-centos92-9.2-6.noarch.rpm or enable for install PostgreSQL in CentOS 6.5

I'm trying to install PostgreSQL 9.2.6 in CentOS 6.5 and I doing as follow: Install PostgreSQL 9.2 repository rpm -Uvh ...
0
votes
1answer
39 views

Lots of connections to loopback, could be slowing us down

I'm trying to debug a sudden increase in our load average. I looked at this page to see if we were being DDoS'ed but the standout IP address was the loopback address: $ netstat -ntu | awk '{print ...
0
votes
0answers
42 views

Moved offices and now cannot connect remotely to postgres

Everything was working in my previous office. I've now moved to a new office, and cannot connect remotely to postgres. SSH works though. My IP is currently 70.90.155.138. Could not connect to ...
0
votes
0answers
22 views

Downgrade to postgis 1.5 and postgresql-9.2 on Ubuntu 13.10

I am having a hard time after having my Ubuntu upgraded. The main problem is that I have a postgis enabled database since postgresql 8.4. I have always updated the OS and databases, as soon as the ...
1
vote
0answers
67 views

Process of Upgrading PostgreSQL and Slony [closed]

I've been working on upgrading a cluster of Postgres servers from 9.2 to 9.3. I thought I would start with a slony upgrade(because it's necessary for PG version bump), but I'm lost. So; How close ...
0
votes
1answer
10 views

PostgreSQL 9.2 segfaulting on corrupt files

After a server crash one or more of Postgres' files have been corrupted (at least, for now, I will assume it is due to the crash and not due to faulty hardware). The problem seems to be limited to ...
1
vote
1answer
60 views

Can't read files into postgres

We've just set up a postgres 9.3 server on a Windows 7 machine. If we try to copy data into a database from C:\dbfeeds\csv.csv we get the following error: ERROR: could not open file ...
1
vote
1answer
39 views

postgres: I can't see queries logged queries. Log files are empty

I am trying to master database queries optimization. And as a first step I need to log all queries (and their execution time to log files). My config file looks this way (I believe I have turned on ...
2
votes
0answers
73 views

Bugzilla extremely slow on EC2, RDS PostgreSQL

The Problem I have installed Bugzilla on an EC2 instance, using PostgreSQL RDS as my database. After entering a few dozen bugs, Bugzilla became unbelievable slow, and I get a lot of timeouts. ...
1
vote
0answers
222 views

Docker: Permission denied on folders added with ADD

I'm trying to configure a postgresql installation using docker. FROM ubuntu:13.10 ADD . /db # install postgres # ... RUN chown postgres:postgres /db -R && \ chmod 700 /db -R USER ...
1
vote
1answer
46 views

Postgres SSPI authentication on Windows

I'm trying to enable windows authentication for Postgresql 9.3 (Windows x64 not in domain, UAC is disabled, my account is local admin). The one click installer set the server running under ...
0
votes
1answer
78 views

Postfix with Pgsql support

I'm trying to find an alternative repo with postfix that has pgsql support on Cenots 6. I previously used CentAlt but since that seems to be dead now i'm trying to find an alternative. I would ...