Re: [PATCHES] Docs - Plpgsql trigger example auditing changes into

2004-12-04 Thread Mark Kirkwood
David Fetter wrote: It occurs to me that this might be a place to demo table inheritance too, to ease automating the creation, etc. of the auditing infrastructure :) It certainly makes the creation of the audit table painless : CREATE TABLE emp_audit( operation char(1) NOT NULL,

Re: [PATCHES] Docs - Plpgsql trigger example auditing changes into

2004-12-03 Thread David Fetter
On Fri, Dec 03, 2004 at 10:14:48AM +1300, Mark Kirkwood wrote: > Tom Lane wrote: > > >Mark Kirkwood <[EMAIL PROTECTED]> writes: > > > > > >>This patch adds another plpgsql trigger example to the chapter. It > >>uses the emp table again, but shows how to audit changes into > >>another table (emp_a

Re: [PATCHES] Docs - Plpgsql trigger example auditing changes into

2004-12-03 Thread Bruce Momjian
Patch applied. Thanks. --- Mark Kirkwood wrote: > Tom Lane wrote: > > >Mark Kirkwood <[EMAIL PROTECTED]> writes: > > > > > >>This patch adds another plpgsql trigger example to the chapter. It uses > >>the emp table ag

Re: [PATCHES] Docs - Plpgsql trigger example auditing changes into

2004-12-02 Thread Mark Kirkwood
Tom Lane wrote: Mark Kirkwood <[EMAIL PROTECTED]> writes: This patch adds another plpgsql trigger example to the chapter. It uses the emp table again, but shows how to audit changes into another table (emp_audit). Should be an AFTER trigger, else you may be recording the wrong data, or ev

Re: [PATCHES] Docs - Plpgsql trigger example auditing changes into another table

2004-12-02 Thread Tom Lane
Mark Kirkwood <[EMAIL PROTECTED]> writes: > This patch adds another plpgsql trigger example to the chapter. It uses > the emp table again, but shows how to audit changes into another table > (emp_audit). Should be an AFTER trigger, else you may be recording the wrong data, or even an event that