Thread: pgsql/src/include/optimizer (tlist.h)

pgsql/src/include/optimizer (tlist.h)

From
tgl@postgresql.org
Date:
  Date: Monday, January  8, 2001 @ 22:48:50
Author: tgl

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

Modified Files:
    tlist.h

-----------------------------  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.