[ADMIN] pg_dump: aborting because of server version mismatch

2012-05-03 Thread Mitesh Shah
Hi, I am trying to create a daily backup cron script but it fails with an error as below: Any pointers to resolve this will be greatly appreciated. Thanks, Mitesh Shah mitesh.s...@stripes39.com *(1) Error:* bash-3.2$ sh pg_backup_rotated_orig.sh Making backup directory in

Re: [ADMIN] [seapug] Re: [BUGS] pg_dump: aborting because of server version mismatchT

2012-05-03 Thread Robert Bernier
There used to be a switch in pg_dump that would disable the version, you can even see that's in the man page. However, it is not reccommended and the most recent versions have fully deprecated the switch. Technically speaking that means that you can even use an older version of pg_dump and it

[ADMIN] postgresql stream replication question

2012-05-03 Thread sgm
Dear admin, I have successfully set up the stream replication M1--IP1, M2---IP2, my question is if the master is down, the slave will become read and write by trigger file, but the client will connect to the IP2,right? Thanks, Song

Re: [ADMIN] postgresql stream replication question

2012-05-03 Thread Devrim GÜNDÜZ
On Thu, 2012-05-03 at 13:47 +0800, sgm wrote: I have successfully set up the stream replication M1--IP1, M2---IP2, my question is if the master is down, the slave will become read and write by trigger file, but the client will connect to the IP2,right? No. You will need something else (like

[ADMIN] Very long IDLE in transaction query

2012-05-03 Thread Gnanakumar
Hi, Recently, in our Production server, we found a single query being held up in IDLE in transaction for more than 19 hours using the following query: select date_trunc('second', current_timestamp - query_start) as runtime, datname as database_name, current_query from pg_stat_activity where

Re: [ADMIN] Very long IDLE in transaction query

2012-05-03 Thread Jan Lentfer
On Thu, 3 May 2012 15:48:35 +0530, Gnanakumar wrote: Hi, Recently, in our Production server, we found a single query being held up in IDLE in transaction for more than 19 hours using the following query: [...] Usually these are application problems, not database ones. E.g. a piece of code

Re: [ADMIN] Very long IDLE in transaction query

2012-05-03 Thread Albe Laurenz
Gnanakumar wrote: Recently, in our Production server, we found a single query being held up in IDLE in transaction for more than 19 hours using the following query: select date_trunc('second', current_timestamp - query_start) as runtime, datname as database_name, current_query from

[ADMIN] DELETE and UPDATE triggers on parent table of partioned table not firing.

2012-05-03 Thread Plugge, Joe R.
Using postgres 9.0.7 on RHEL 5.4. I have a parent table that is partitioned by day. My inserts are working correctly and are being directed to the correct child table. I also have both an UPDATE and DELETE trigger on the parent table that are defined as AFTER triggers. The actual update and

Re: [ADMIN] DELETE and UPDATE triggers on parent table of partioned table not firing.

2012-05-03 Thread Kevin Grittner
Plugge, Joe R. jrplu...@west.com wrote: Using postgres 9.0.7 on RHEL 5.4. I have a parent table that is partitioned by day. My inserts are working correctly and are being directed to the correct child table. I also have both an UPDATE and DELETE trigger on the parent table that are