On Fri, Feb 24, 2012 at 2:55 PM, Kevin Grittner <kevin.gritt...@wicourts.gov> wrote: > Tom Lane <t...@sss.pgh.pa.us> wrote: > >> By default, a trigger function runs as the table owner, ie it's > implicitly SEC DEF >> to the table owner. > > Really? That's certainly what I would *want*, but it's not what I've > seen.
Yeah, not quite consistent with what I've seen. And it's not obvious that it truly is what you want. An audit trigger would need to run as the *audit table* owner, which might not be the same as the user that owns the table on which the trigger fires. -- When confronted by a difficult problem, solve it by reducing it to the question, "How would the Lone Ranger handle this?" -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers