pgsql/src/backend/optimizer/util (tlist.c)

Started by Tom Laneover 25 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

Date: Monday, January 8, 2001 @ 22:48:50
Author: tgl

Update of /home/projects/pgsql/cvsroot/pgsql/src/backend/optimizer/util
from hub.org:/home/projects/pgsql/tmp/cvs-serv48277/backend/optimizer/util

Modified Files:
tlist.c

----------------------------- Log Message -----------------------------

Fix oversight in planning of GROUP queries: when an expression is used
as both a GROUP BY item and an output expression, the top-level Group
node should just copy up the evaluated expression value from its input,
rather than re-evaluating the expression. Aside from any performance
benefit this might offer, this avoids a crash when there is a sub-SELECT
in said expression.