pgsql: Arrange for ValuesScan to keep per-sublist expression eval state

Lists: pgsql-committers
From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Arrange for ValuesScan to keep per-sublist expression eval state
Date: 2006-08-02 18:58:21
Message-ID: 20060802185821.9070F9FA4C8@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

Log Message:
-----------
Arrange for ValuesScan to keep per-sublist expression eval state in a
temporary context that can be reset when advancing to the next sublist.
This is faster and more thorough at recovering space than the previous
method; moreover it will do the right thing if something in the sublist
tries to register an expression context callback.

Modified Files:
--------------
pgsql/src/backend/executor:
nodeValuesscan.c (r1.1 -> r1.2)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeValuesscan.c.diff?r1=1.1&r2=1.2)
pgsql/src/include/nodes:
execnodes.h (r1.156 -> r1.157)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/nodes/execnodes.h.diff?r1=1.156&r2=1.157)