Re: Triggers, again.. ;-) - Mailing list pgsql-general

From Phil Endecott
Subject Re: Triggers, again.. ;-)
Date
Msg-id 4218E559.4080807@chezphil.org
Whole thread Raw
In response to Triggers, again.. ;-)  ("Net Virtual Mailing Lists" <mailinglists@net-virtual.com>)
List pgsql-general
Greg wrote:
 > is "DROP TRIGGER" transaction safe?... I mean, could I do:
 >
 > BEGIN
 > DROP TRIGGER category_mv_ut;
 > ... insert rows
 > ... update materialized view table
 > CREATE TRIGGER category_mv_ut AFTER UPDATE ON items
 >   FOR EACH ROW EXECUTE PROCEDURE update_ut();
 > COMMIT;
 >
 > .. without other sessions being affected?

This is exactly what I do to avoid matview bulk-update performance issues.

--Phil.







pgsql-general by date:

Previous
From: phil campaigne
Date:
Subject: Problems with select statement
Next
From: Scott Marlowe
Date:
Subject: Re: Scalability with large numbers of tables