Re: Trigger question: ROW or STATEMENT? - Mailing list pgsql-general

From Doug McNaught
Subject Re: Trigger question: ROW or STATEMENT?
Date
Msg-id 87irs8gkhg.fsf@asmodeus.mcnaught.org
Whole thread Raw
In response to Trigger question: ROW or STATEMENT?  (Patrick Hatcher <PHatcher@macys.com>)
Responses Re: Trigger question: ROW or STATEMENT?
List pgsql-general
Patrick Hatcher <PHatcher@macys.com> writes:

> Attempting to do my first trigger and I'm confused about which FOR EACH I
> should use: ROW or STATEMENT.  I import about 80K rows into an existing
> table each day.  If I do a STATEMENT, will the changes only happen on the
> new 80K rows I inserted or will it be for all rows in the table - currently
> about 12M.

If you told us what you want the trigger to do it would probably be
helpful.

-Doug

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Postgresql Segfault in 8.1
Next
From: Benjamin Smith
Date:
Subject: Re: Postgresql Segfault in 8.1