From ad161bcc8a3792d18ef2f3ebe66bb1e22d42b6f2 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 6 Apr 2005 16:34:07 +0000 Subject: Merge Resdom nodes into TargetEntry nodes to simplify code and save a few palloc's. I also chose to eliminate the restype and restypmod fields entirely, since they are redundant with information stored in the node's contained expression; re-examining the expression at need seems simpler and more reliable than trying to keep restype/restypmod up to date. initdb forced due to change in contents of stored rules. --- src/backend/access/common/printtup.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/backend/access/common/printtup.c') diff --git a/src/backend/access/common/printtup.c b/src/backend/access/common/printtup.c index 6f44533822b..e78dc19a03f 100644 --- a/src/backend/access/common/printtup.c +++ b/src/backend/access/common/printtup.c @@ -9,7 +9,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/common/printtup.c,v 1.87 2005/03/16 21:38:04 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/access/common/printtup.c,v 1.88 2005/04/06 16:34:04 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -190,14 +190,14 @@ SendRowDescriptionMessage(TupleDesc typeinfo, List *targetlist, int16 *formats) { /* Do we have a non-resjunk tlist item? */ while (tlist_item && - ((TargetEntry *) lfirst(tlist_item))->resdom->resjunk) + ((TargetEntry *) lfirst(tlist_item))->resjunk) tlist_item = lnext(tlist_item); if (tlist_item) { - Resdom *res = ((TargetEntry *) lfirst(tlist_item))->resdom; + TargetEntry *tle = (TargetEntry *) lfirst(tlist_item); - pq_sendint(&buf, res->resorigtbl, 4); - pq_sendint(&buf, res->resorigcol, 2); + pq_sendint(&buf, tle->resorigtbl, 4); + pq_sendint(&buf, tle->resorigcol, 2); tlist_item = lnext(tlist_item); } else -- cgit v1.2.3