Re: Fix NULL pointer reference in _outPathTarget()

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: Richard Guo <guofenglinux(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fix NULL pointer reference in _outPathTarget()
Date: 2022-04-20 16:02:47
Message-ID: 3c7578d3-2f1d-d490-9337-273afda6e194@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2022-04-20 16:04:00 Re: Fix NULL pointer reference in _outPathTarget()
Previous Message Robert Haas 2022-04-20 15:54:52 Re: pg14 psql broke \d datname.nspname.relname