pgsql/src/backend/parser analyze.c

Поиск
Список
Период
Сортировка
Искать

pgsql/src/backend/parser analyze.c

От:
tgl@postgresql.org (Tom Lane)
Дата:
CVSROOT:	/cvsroot
Module name:	pgsql
Changes by:	tgl@postgresql.org	02/06/12 22:04:47

Modified files:
	src/backend/parser: analyze.c 

Log message:
	Repair for bug #691 --- CREATE TABLE AS column aliases fail to be
	applied when the select is a UNION (or other set-operation).
	
	An alternative route to a fix would be to leave analyze.c alone and
	change plan_set_operations in prepunion.c to take column names from
	the topmost targetlist.  But I am not sure that would work in all
	cases.  This patch seems the minimum-risk fix.

FAQ