pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Remove WITH OIDS support, change oid catalog column visibility.
Date: Sat, 16 Feb 2019 11:14:21 +0100
Message-ID: <ba819888-63c6-7f98-6acb-3731142d9414@2ndquadrant.com> (raw)
In-Reply-To: <E1gPG3j-0003cy-03@gemulon.postgresql.org>
References: <E1gPG3j-0003cy-03@gemulon.postgresql.org>

On 2018-11-21 01:07, Andres Freund wrote:
> Remove WITH OIDS support, change oid catalog column visibility.

I think you may have accidentally duplicated a line in this patch:

@@ -1602,20 +1602,9 @@ ExecFetchSlotHeapTupleDatum(TupleTableSlot *slot)
 void
 ExecInitResultTypeTL(PlanState *planstate)
 {
-   bool        hasoid;
-   TupleDesc   tupDesc;
-
-   if (ExecContextForcesOids(planstate, &hasoid))
-   {
-       /* context forces OID choice; hasoid is now set correctly */
-   }
-   else
-   {
-       /* given free choice, don't leave space for OIDs in result tuples */
-       hasoid = false;
-   }
+   TupleDesc   tupDesc = ExecTypeFromTL(planstate->plan->targetlist);

-   tupDesc = ExecTypeFromTL(planstate->plan->targetlist, hasoid);
+   tupDesc = ExecTypeFromTL(planstate->plan->targetlist);
    planstate->ps_ResultTupleDesc = tupDesc;
 }

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (11+ messages)  latest in thread

Message-ID: <ba819888-63c6-7f98-6acb-3731142d9414@2ndquadrant.com>
Permalink:  ../ba819888-63c6-7f98-6acb-3731142d9414@2ndquadrant.com/
Also on:    postgresql.org/message-id/ba819888-63c6-7f98-6acb-3731142d9414@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, andres@anarazel.de
  Subject: Re: pgsql: Remove WITH OIDS support, change oid catalog column visibility.
  In-Reply-To: <ba819888-63c6-7f98-6acb-3731142d9414@2ndquadrant.com>
  References: <E1gPG3j-0003cy-03@gemulon.postgresql.org> <ba819888-63c6-7f98-6acb-3731142d9414@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox