pgsql: Fix core dump in transformValuesClause when there are no columns

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix core dump in transformValuesClause when there are no columns
Дата
Msg-id E1no7vK-000meo-86@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Revert "Disallow infinite endpoints in generate_series() for tim
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Last-minute updates for release notes.