Re: Triggers, again.. ;-)

From: Phil Endecott <spam_from_postgresql_general(at)chezphil(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Triggers, again.. ;-)
Date: 2005-02-20 19:30:33
Message-ID: 4218E559.4080807@chezphil.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2005-02-20 20:31:02 Re: Scalability with large numbers of tables
Previous Message phil campaigne 2005-02-20 19:13:53 Problems with select statement