Re: [ADMIN] constraint triggers

2011-09-28 Thread Craig Ringer
On 09/28/2011 08:54 PM, Maria L. Wilson wrote: UPDATE dataset SET gracount = gracount + 1 WHERE dataset.inv_id = NEW.inv_id; That'll serialize all transactions that touch the same inv_id, so only one may run at once. The second and subsequent ones will block waiting for an update lock on the

Re: [ADMIN] diagnosing a db crash - server exit code 2

2011-09-28 Thread Robert Burgholzer
Just a quick checkin on this problem. Thus far, I have managed to install dbg and recompile postgresql with the appropriate debugging headers/variables. I have been following wiki that Scott sent, and attempted to trace one of my pg processes while making it crash. I have "succeeded" in causing

Re: [ADMIN] Postgres 9 on 64 bit

2011-09-28 Thread Kasia Tuszynska
Hi, I install pg 9.0.2 on suse 11sp1, I compile from source Sincerely, Kasia From: pgsql-admin-ow...@postgresql.org [mailto:pgsql-admin-ow...@postgresql.org] On Behalf Of ALEXANDER JOSE Sent: Tuesday, September 27, 2011 10:38 AM To: postgres admin Subject: [ADMIN] Postgres 9 on 64 bit Hi, I wan

Re: [ADMIN] constraint triggers

2011-09-28 Thread Kevin Grittner
Gilberto Castillo Martínez wrote: >> CREATE OR REPLACE FUNCTION increment_dataset_granule_count() >> RETURN NULL; > Replace RETURN NULL for RETURN NEW That won't matter for an AFTER trigger: http://www.postgresql.org/docs/9.0/interactive/trigger-definition.html says: | The ret

Re: [ADMIN] constraint triggers

2011-09-28 Thread Gilberto Castillo Martínez
El mié, 28-09-2011 a las 08:54 -0400, Maria L. Wilson escribió: > Hi all > > I would like to start a dialogue and hear general feedback about the > use of constraint triggers in postgres (8.4.5). > > Our overall issue is that using general triggers is causing slow > inserts (from locking is

[ADMIN] constraint triggers

2011-09-28 Thread Maria L. Wilson
Hi all I would like to start a dialogue and hear general feedback about the use of constraint triggers in postgres (8.4.5). Our overall issue is that using general triggers is causing slow inserts (from locking issues) in our database. Here are some details: A little background (jboss/