From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)svr1(dot)postgresql(dot)org> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | Re: [COMMITTERS] pgsql-server/src/backend/executor execScan.c |
Date: | 2003-09-28 01:14:28 |
Message-ID: | 200309280114.h8S1ESt29338@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
Tom Lane wrote:
> CVSROOT: /cvsroot
> Module name: pgsql-server
> Changes by: tgl(at)svr1(dot)postgresql(dot)org 03/09/25 16:41:49
>
> Modified files:
> src/backend/executor: execScan.c
>
> Log message:
> tlist_matches_tupdesc() needs to defend itself against dropped columns.
Tom, does this duplicate a patch in the patch queue, or is it separate?
---------------------------------------------------------------------------
I discovered that TupleDescGetAttInMetadata and BuildTupleFromCStrings
don't deal well with tuples having dropped columns. The attached fixes
the issue. Please apply.
Thanks,
Joe
--------------080304060303070809090706
Content-Type: text/plain;
name="attinmeta-drop-col-fix.1.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="attinmeta-drop-col-fix.1.patch"
Index: src/backend/executor/execTuples.c
===================================================================
RCS file: /opt/src/cvs/pgsql-server/src/backend/executor/execTuples.c,v
retrieving revision 1.71
diff -c -r1.71 execTuples.c
*** src/backend/executor/execTuples.c 8 Aug 2003 21:41:40 -0000 1.71
--- src/backend/executor/execTuples.c 21 Sep 2003 23:23:02 -0000
***************
*** 674,689 ****
* Gather info needed later to call the "in" function for each
* attribute
*/
! attinfuncinfo = (FmgrInfo *) palloc(natts * sizeof(FmgrInfo));
! attelems = (Oid *) palloc(natts * sizeof(Oid));
! atttypmods = (int32 *) palloc(natts * sizeof(int32));
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-09-28 01:19:33 | pgsql-server/doc/src/sgml/ref create_view.sgml |
Previous Message | Bruce Momjian | 2003-09-28 00:25:22 | pgsql-server/src/tools/pgindent pgindent |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-09-28 01:20:06 | Re: Problem with function permission test in a view |
Previous Message | Bruce Momjian | 2003-09-28 00:25:44 | Re: old pgindent change |