Re: Support json_errdetail in FRONTEND builds - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Support json_errdetail in FRONTEND builds
Date
Msg-id 2501251.1710512127@sss.pgh.pa.us
Whole thread Raw
In response to Re: Support json_errdetail in FRONTEND builds  (Daniel Gustafsson <daniel@yesql.se>)
Responses Re: Support json_errdetail in FRONTEND builds
List pgsql-hackers
Daniel Gustafsson <daniel@yesql.se> writes:
> I can't see how refusing to free memory owned and controlled by someone else,
> and throwing an error if attempted, wouldn't be a sound defensive programming
> measure.

I think the argument is about what "refusal" looks like.
An Assert seems OK to me, but anything based on elog is
likely to be problematic, because it'll involve exit()
somewhere.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Aleksander Alekseev
Date:
Subject: Re: POC: Extension for adding distributed tracing - pg_tracing
Next
From: Aleksander Alekseev
Date:
Subject: Re: Extensible storage manager API - SMGR hook Redux