From da27c0a1ef9c35afef18f7ae3542498cb3a943a9 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 26 Nov 2005 22:14:57 +0000 Subject: Teach tid-scan code to make use of "ctid = ANY (array)" clauses, so that "ctid IN (list)" will still work after we convert IN to ScalarArrayOpExpr. Make some minor efficiency improvements while at it, such as ensuring that multiple TIDs are fetched in physical heap order. And fix EXPLAIN so that it shows what's really going on for a TID scan. --- src/backend/nodes/copyfuncs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/nodes/copyfuncs.c') diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index ba1a476ad0f..7d708e3fb1d 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -15,7 +15,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.321 2005/11/22 18:17:11 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.322 2005/11/26 22:14:56 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -325,7 +325,7 @@ _copyTidScan(TidScan *from) /* * copy remainder of node */ - COPY_NODE_FIELD(tideval); + COPY_NODE_FIELD(tidquals); return newnode; } -- cgit v1.2.3