From: | "Net Virtual Mailing Lists" <mailinglists(at)net-virtual(dot)com> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Triggers, again.. ;-) |
Date: | 2005-02-21 19:11:00 |
Message-ID: | 20050221191100.13372@mail.net-virtual.com |
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.
Hello,
Are there any issues I should know about with this method?.... Will
other transactions be able to take place during this?... Any blocking
issues?..... I've never attempted anything like this and it seems sort-of
scary to me (at the very least, applying an awfully big hammer to the
problem).
Thanks for your help!
- Greg
From | Date | Subject | |
---|---|---|---|
Next Message | Hrishikesh Deshmukh | 2005-02-21 20:02:15 | Postgresql 8.0 [Windows] |
Previous Message | Jerry LeVan | 2005-02-21 18:53:15 | Shared Memory and Mac OS X |