On Tue, Jun 10, 2014 at 12:27 AM, Amit Kapila <[email protected]> wrote: > Is there a need to free memory context in PG_CATCH()? > In error path the memory due to this temporary context will get > freed as it will delete the transaction context and this > temporary context will definitely be in the hierarchy of it, so > it should also get deleted. I think such handling can be > useful incase we use PG_CATCH() to suppress the error.
Using PG_CATCH() to suppress an error is pretty much categorically unsafe. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
