Re: Fix NULL pointer reference in _outPathTarget() - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Fix NULL pointer reference in _outPathTarget()
Date
Msg-id 3c7578d3-2f1d-d490-9337-273afda6e194@enterprisedb.com
Whole thread Raw
In response to Fix NULL pointer reference in _outPathTarget()  (Richard Guo <guofenglinux@gmail.com>)
Responses Re: Fix NULL pointer reference in _outPathTarget()  (Richard Guo <guofenglinux@gmail.com>)
List pgsql-hackers
On 18.04.22 09:35, Richard Guo wrote:
> The array sortgrouprefs[] inside PathTarget might be NULL if we have not
> identified sort/group columns in this tlist. In that case we would have
> a NULL pointer reference in _outPathTarget() when trying to print
> sortgrouprefs[] with WRITE_INDEX_ARRAY as we are using the length of
> PathTarget->exprs as its array length.

Do you have a test case that triggers this issue?



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: pg14 psql broke \d datname.nspname.relname
Next
From: Peter Eisentraut
Date:
Subject: Re: Fix NULL pointer reference in _outPathTarget()