Обсуждение: pgsql/src/backend/optimizer/util (tlist.c)

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

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

От
tgl@postgresql.org
Дата:
  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.