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