Search Postgresql Archives

Re: Exception Handling in C-Language Functions?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux