From 9caafda579f699b43fa4c89bf13a2331ef00611e Mon Sep 17 00:00:00 2001 From: Joe Conway Date: Wed, 2 Aug 2006 01:59:48 +0000 Subject: Add support for multi-row VALUES clauses as part of INSERT statements (e.g. "INSERT ... VALUES (...), (...), ...") and elsewhere as allowed by the spec. (e.g. similar to a FROM clause subselect). initdb required. Joe Conway and Tom Lane. --- src/include/nodes/execnodes.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'src/include/nodes/execnodes.h') diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h index 8dec4130e28..2e981240037 100644 --- a/src/include/nodes/execnodes.h +++ b/src/include/nodes/execnodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/nodes/execnodes.h,v 1.155 2006/07/27 19:52:07 tgl Exp $ + * $PostgreSQL: pgsql/src/include/nodes/execnodes.h,v 1.156 2006/08/02 01:59:47 joe Exp $ * *------------------------------------------------------------------------- */ @@ -1041,6 +1041,27 @@ typedef struct FunctionScanState ExprState *funcexpr; } FunctionScanState; +/* ---------------- + * ValuesScanState information + * + * Values nodes are used to scan the results of a + * values list appearing in FROM or INSERT + * + * exprlists array of expression lists being evaluated + * array_len size of array + * curr_idx current array index (0-based) + * marked_idx marked position (for mark/restore) + * ---------------- + */ +typedef struct ValuesScanState +{ + ScanState ss; /* its first field is NodeTag */ + List **exprlists; + int array_len; + int curr_idx; + int marked_idx; +} ValuesScanState; + /* ---------------------------------------------------------------- * Join State Information * ---------------------------------------------------------------- -- cgit v1.2.3