Re: Dynamically accessing columns from a row type in a trigger - Mailing list pgsql-general

From Rob Sargent
Subject Re: Dynamically accessing columns from a row type in a trigger
Date
Msg-id 4c1e0917-4ee8-6a10-f06b-dae47bd05ae7@gmail.com
Whole thread Raw
In response to Re: Dynamically accessing columns from a row type in a trigger  ("Rhys A.D. Stewart" <rhys.stewart@gmail.com>)
List pgsql-general
So the less obvious solution that works is to create a temporary
> table. A little verbose, but I get to keep the types.
>
> `CREATE TEMPORARY TABLE _ ON COMMIT DROP AS SELECT OLD.*;`
>
> _ as a table name makes things a little easier to type.
>
>
>
> Rhys
> Peace & Love | Live Long & Prosper
>
>
If the connection creating the table is long-lived, maybe make the table 
once and truncate instead.





pgsql-general by date:

Previous
From: "Rhys A.D. Stewart"
Date:
Subject: Re: Dynamically accessing columns from a row type in a trigger
Next
From: Sai Teja
Date:
Subject: Re: Fatal Error : Invalid Memory alloc request size 1236252631