From: | William Leite Araújo <william(dot)bh(at)gmail(dot)com> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | aaron(dot)clauson(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org |
Subject: | Re: plpgsql replication stored procedure |
Date: | 2006-04-17 20:35:28 |
Message-ID: | bc63ad820604171335m8325673maf2d64648361a465@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 4/17/06, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> aaron(dot)clauson(at)gmail(dot)com writes:
> > I'm trying to write a stored procedure that can capture all the changes
> > to a table and record the changes based on the table's primary key.
> > I can almost get there but the sticking point is being able to access
> > the primary key field of the NEW/OLD record in the trigger stored
> > procedure without knowing it's name.
My database has a table that store all changes mades on all tables. The
insert is made by onde single trigger, but I create a function that build
functions to convert an generic record on a text value.
If this is usefull, mail-me ;-)
Dynamic record name cannot be made on a plpgsql function. This topic was
discursed some months ago.
--
William Leite Araújo
Especialista em Geoprocessamento - UFMG
Bacharel em Ciêncida da Computação - UFMG
MSN: ufmgwil(at)yahoo(dot)com(dot)br
ICQ: 222159351
GTalk: william(dot)bh(at)gmail(dot)com
Yahoo: ufmgwil(at)yahoo(dot)com(dot)br
Skype: william.bh
From | Date | Subject | |
---|---|---|---|
Next Message | Dawid Kuroczko | 2006-04-17 20:44:20 | Re: 21 bit number for sequence |
Previous Message | Joshua D. Drake | 2006-04-17 20:20:56 | Re: tsearch partial word |