Re: how to correctly react on exception in pfree function? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: how to correctly react on exception in pfree function?
Date
Msg-id 862925.1665617093@sss.pgh.pa.us
Whole thread Raw
In response to how to correctly react on exception in pfree function?  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: how to correctly react on exception in pfree function?
List pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> I had a talk with Julien about the correct handling of an exception raised
> by pfree function.

> Currently, this exception (elog(ERROR, "could not find block containing
> chunk %p", chunk);) is not specially handled ever.

There are hundreds, if not thousands, of "shouldn't ever happen" elogs
in Postgres.  We don't make any attempt to trap any of them.  Why do
you think this one should be different?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Nikita Malakhov
Date:
Subject: Re: Pluggable toaster
Next
From: Zhihong Yu
Date:
Subject: Re: Bloom filter Pushdown Optimization for Merge Join