Alvaro Herrera <[EMAIL PROTECTED]> writes: > I wonder why is this? Is there some limitation to using palloc outside > the backend itself? I ask because I have considered using it outside > Postgres several times (a consideration that has never materialized > yet), and I wonder if it needs something special to work.
It's useless without the rest of the backend infrastructure, including elog error recovery and a cooperative main loop. You could certainly reuse the code in a different application if you were willing to adopt Postgres' memory management and error handling approaches lock-stock-and-barrel, but I don't think you could be selective about it. For a library that has to work inside a not-so-cooperative application, the idea is a nonstarter. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly