pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix core dump in transformValuesClause when there are no columns
6+ messages / 1 participants
[nested] [flat]

* pgsql: Fix core dump in transformValuesClause when there are no columns
@ 2022-05-09 18:15 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2022-05-09 18:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix core dump in transformValuesClause when there are no columns.

The parser code that transformed VALUES from row-oriented to
column-oriented lists failed if there were zero columns.
You can't write that straightforwardly (though probably you
should be able to), but the case can be reached by expanding
a "tab.*" reference to a zero-column table.

Per bug #17477 from Wang Ke.  Back-patch to all supported branches.

Discussion: https://postgr.es/m/17477-0af3c6ac6b0a6ae0@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fe20afaee8aac7838ed6e4a76baa83e547629582

Modified Files
--------------
src/backend/parser/analyze.c         | 18 ++++++------------
src/test/regress/expected/select.out |  7 +++++++
src/test/regress/sql/select.sql      |  5 +++++
3 files changed, 18 insertions(+), 12 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix core dump in transformValuesClause when there are no columns
@ 2022-05-09 18:15 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2022-05-09 18:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix core dump in transformValuesClause when there are no columns.

The parser code that transformed VALUES from row-oriented to
column-oriented lists failed if there were zero columns.
You can't write that straightforwardly (though probably you
should be able to), but the case can be reached by expanding
a "tab.*" reference to a zero-column table.

Per bug #17477 from Wang Ke.  Back-patch to all supported branches.

Discussion: https://postgr.es/m/17477-0af3c6ac6b0a6ae0@postgresql.org

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ab2f783921734a96aa1baf4f3ea165292b62aecf

Modified Files
--------------
src/backend/parser/analyze.c         | 18 ++++++------------
src/test/regress/expected/select.out |  7 +++++++
src/test/regress/sql/select.sql      |  5 +++++
3 files changed, 18 insertions(+), 12 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix core dump in transformValuesClause when there are no columns
@ 2022-05-09 18:15 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2022-05-09 18:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix core dump in transformValuesClause when there are no columns.

The parser code that transformed VALUES from row-oriented to
column-oriented lists failed if there were zero columns.
You can't write that straightforwardly (though probably you
should be able to), but the case can be reached by expanding
a "tab.*" reference to a zero-column table.

Per bug #17477 from Wang Ke.  Back-patch to all supported branches.

Discussion: https://postgr.es/m/17477-0af3c6ac6b0a6ae0@postgresql.org

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/91a3a74c65f4094420b28c393ac1d38af8ae4c4a

Modified Files
--------------
src/backend/parser/analyze.c         | 21 +++++++--------------
src/test/regress/expected/select.out |  7 +++++++
src/test/regress/sql/select.sql      |  5 +++++
3 files changed, 19 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix core dump in transformValuesClause when there are no columns
@ 2022-05-09 18:15 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2022-05-09 18:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix core dump in transformValuesClause when there are no columns.

The parser code that transformed VALUES from row-oriented to
column-oriented lists failed if there were zero columns.
You can't write that straightforwardly (though probably you
should be able to), but the case can be reached by expanding
a "tab.*" reference to a zero-column table.

Per bug #17477 from Wang Ke.  Back-patch to all supported branches.

Discussion: https://postgr.es/m/17477-0af3c6ac6b0a6ae0@postgresql.org

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/90e52884edf75b86c2832e6094d30eb2987d23a2

Modified Files
--------------
src/backend/parser/analyze.c         | 21 +++++++--------------
src/test/regress/expected/select.out |  7 +++++++
src/test/regress/sql/select.sql      |  5 +++++
3 files changed, 19 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix core dump in transformValuesClause when there are no columns
@ 2022-05-09 18:15 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2022-05-09 18:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix core dump in transformValuesClause when there are no columns.

The parser code that transformed VALUES from row-oriented to
column-oriented lists failed if there were zero columns.
You can't write that straightforwardly (though probably you
should be able to), but the case can be reached by expanding
a "tab.*" reference to a zero-column table.

Per bug #17477 from Wang Ke.  Back-patch to all supported branches.

Discussion: https://postgr.es/m/17477-0af3c6ac6b0a6ae0@postgresql.org

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/539f8c563ce70cecb1d45f026015162ca52c7306

Modified Files
--------------
src/backend/parser/analyze.c         | 21 +++++++--------------
src/test/regress/expected/select.out |  7 +++++++
src/test/regress/sql/select.sql      |  5 +++++
3 files changed, 19 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix core dump in transformValuesClause when there are no columns
@ 2022-05-09 18:15 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2022-05-09 18:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix core dump in transformValuesClause when there are no columns.

The parser code that transformed VALUES from row-oriented to
column-oriented lists failed if there were zero columns.
You can't write that straightforwardly (though probably you
should be able to), but the case can be reached by expanding
a "tab.*" reference to a zero-column table.

Per bug #17477 from Wang Ke.  Back-patch to all supported branches.

Discussion: https://postgr.es/m/17477-0af3c6ac6b0a6ae0@postgresql.org

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4eabaffcada25206c3f8f89f7cb0b27ffb9372bc

Modified Files
--------------
src/backend/parser/analyze.c         | 21 +++++++--------------
src/test/regress/expected/select.out |  7 +++++++
src/test/regress/sql/select.sql      |  5 +++++
3 files changed, 19 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2022-05-09 18:15 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-05-09 18:15 pgsql: Fix core dump in transformValuesClause when there are no columns Tom Lane <tgl@sss.pgh.pa.us>
2022-05-09 18:15 pgsql: Fix core dump in transformValuesClause when there are no columns Tom Lane <tgl@sss.pgh.pa.us>
2022-05-09 18:15 pgsql: Fix core dump in transformValuesClause when there are no columns Tom Lane <tgl@sss.pgh.pa.us>
2022-05-09 18:15 pgsql: Fix core dump in transformValuesClause when there are no columns Tom Lane <tgl@sss.pgh.pa.us>
2022-05-09 18:15 pgsql: Fix core dump in transformValuesClause when there are no columns Tom Lane <tgl@sss.pgh.pa.us>
2022-05-09 18:15 pgsql: Fix core dump in transformValuesClause when there are no columns Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox