Re: sig 11 in RC3 - Mailing list pgsql-hackers

From Holger Krug
Subject Re: sig 11 in RC3
Date
Msg-id 20020104174214.B24700@dev12.rationalizer.com
Whole thread Raw
In response to Re: sig 11 in RC3  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Fri, Jan 04, 2002 at 11:02:04AM -0500, Tom Lane wrote:
> mlw <markw@mohawksoft.com> writes:

> Alternatively, keep the data structure in a longer-lived context
> (TransactionCommandContext should work) instead of the per-tuple
> context.

It depends, I had to use `TopTransactionContect' in a similar case.

If you really want to return a pointer, I would recommend to
introduce a new type `pointer', where the input and output functions
simply call `elog(ERROR,..)'. This way you can avoid to forget that
your pointer cannot be externalized.

-- 
Holger Krug
hkrug@rationalizer.com


pgsql-hackers by date:

Previous
From: Holger Krug
Date:
Subject: ON ERROR triggers
Next
From: Kaare Rasmussen
Date:
Subject: Re: Updated TODO item