PG Bug reporting form <noreply@postgresql.org> writes:
> coerce_type accepts NULL as pstate and can pass it to
> coerce_record_to_complex, which passes it to GetNSItemByRangeTablePosn,
> which dereferences it.
Can you demonstrate any actual bug here? If so, it's not
coerce_type's, which is clearly documented to allow NULL.
regards, tom lane