On Fri, Jul 8, 2011 at 12:48 PM, Dean Rasheed <dean.a.rasheed@xxxxxxxxx> wrote: > Yes, it's the same issue that affects deferrable PK and FK > constraints, but even non-deferrable FKs use AFTER ROW triggers that > suffer from this problem. These triggers don't show up in a "\d" from > psql, but they are there (try select * from pg_trigger where > tgconstrrelid = 't1'::regclass) and because they fire AFTER rather > than BEFORE, queuing up large numbers of them is a problem. I would imagine an "easy" solution would be to "compress" the queue by inserting a single element representing all rows of row version id X. Ie: a delete or update will need to check all the row versions it creates with its txid, this txid could be used to represent the rows that need checking afterwards right? -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general