Re: creating trigger in 8.3 -- very slow - Mailing list pgsql-admin

From Tom Lane
Subject Re: creating trigger in 8.3 -- very slow
Date
Msg-id 27813.1345686306@sss.pgh.pa.us
Whole thread Raw
In response to creating trigger in 8.3 -- very slow  (Greg Williamson <gwilliamson39@yahoo.com>)
List pgsql-admin
Greg Williamson <gwilliamson39@yahoo.com> writes:
> I've got a fairly large table (186 million rows) that is moderately busy ( a few inserts per second at most) that I
amtrying to create a trigger on -- �it is just hanging. 

CREATE TRIGGER per se is pretty quick ... but it requires an exclusive
lock on the table.  Most likely your problem is that it's backed up
behind existing holders of locks.  The pg_locks view should help you
figure out what's blocking it.

            regards, tom lane


pgsql-admin by date:

Previous
From: Greg Williamson
Date:
Subject: creating trigger in 8.3 -- very slow
Next
From: Kouber Saparev
Date:
Subject: Does pg_reset_stats() influence autovacuum?