Re: [ADMIN] logging how to add timestamp

2011-06-01 Thread Ray Stell
On Wed, Jun 01, 2011 at 04:56:12PM +, Campbell, Lance wrote: > Postgresql: 8.4.x > How do you add a timestamp to the logs. Currently I see: > > ERROR: {some error message} > STATEMENT: {the sql statement} > > Ideally I would like to have the timestamp in front of the statements. > > Thanks,

[ADMIN] logging how to add timestamp

2011-06-01 Thread Campbell, Lance
Postgresql: 8.4.x How do you add a timestamp to the logs. Currently I see: ERROR: {some error message} STATEMENT: {the sql statement} Ideally I would like to have the timestamp in front of the statements. Thanks, Lance Campbell Software Architect/Project Manager/DBA Web Services at Public Affa

Re: [ADMIN] Reindexing primary keys without locking

2011-06-01 Thread Kevin Grittner
Glyn Astill wrote: > Does anyone know of any tricks to replace primary key indexes > without using reindex? Or any other method that will not lock the > table for an extended amount of time on 8.4? > > I've got a bloated primary key index on a table and I'd like to > try and clean it up without

Re: [ADMIN] patching the OS of a 9.0.4 db with hot standby

2011-06-01 Thread Ray Stell
On Wed, Jun 01, 2011 at 06:47:51AM -0400, Greg Smith wrote: > Ray Stell wrote: >> I want to do OS patching on prod and hot standby. What is the advised >> procedure for maintenance on the two systems? I would think patching >> the standby should come first in case it blows something up. Oracle ha

[ADMIN] Reindexing primary keys without locking

2011-06-01 Thread Glyn Astill
Hi Guys, Does anyone know of any tricks to replace primary key indexes without using reindex? Or any other method that will not lock the table for an extended amount of time on 8.4? I've got a bloated primary key index on a table and I'd like to try and clean it up without downtime. A quick s

Re: [ADMIN] patching the OS of a 9.0.4 db with hot standby

2011-06-01 Thread Greg Smith
Ray Stell wrote: I want to do OS patching on prod and hot standby. What is the advised procedure for maintenance on the two systems? I would think patching the standby should come first in case it blows something up. Oracle has a defer switch you can throw on prod to tell it to relax on log shi

Re: [ADMIN] Strange behavior of child table.

2011-06-01 Thread Greg Smith
On 06/01/2011 02:07 AM, Jenish wrote: select * from Round_Action where action_id =5 limit 100 → execution time 80 sec select * from Round_Action_CH1 action_id =5 limit 100 → execution time 0.1 sec First off: each of the child tables needs to have the index created on them. That