At Sat, 21 May 2005 20:13:13 +1000,
Neil Conway wrote:
> > Do "palloc" and "pfree" handle such a case cleanly?
> 
> Yes -- they will roll back the current transaction on if there is no 
> memory available. 

Great.  So I just use those.

> You can catch the error via PG_TRY() in 8.0 [...]

Nice, but we're not deploying 8.0.  However, at the moment, out of
memory exceptions seem to be the only ones that I've to deal with.

-- 
Felix E. Klee

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq

Reply via email to