Re: [HACKERS] Whats the correct way to change trigdata-tg_relation

2013-01-02 Thread Robert Haas
On Fri, Dec 28, 2012 at 1:06 PM, Charles Gomes charle...@outlook.com wrote: I'm creating a simple trigger that will be called during an insert and change the destination table. All values are going to be preserved, just the destination table will be different. From what I see I can't

[HACKERS] Whats the correct way to change trigdata-tg_relation

2012-12-28 Thread Charles Gomes
I'm creating a simple trigger that will be called during an insert and change the destination table. All values are going to be preserved, just the destination table will be different. From what I see I can't modify trigdata-tg_relation. All examples use: return Datum(trigdata-tg_trigtuple);