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

On 2019-02-16 11:14:21 +0100, Peter Eisentraut wrote:
> 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;
>  }

Indeed! Thanks for noticing. Fixed.




view thread (11+ messages)

Message-ID: <20190218191214.ipkyaetw4mal4pcu@alap3.anarazel.de>
Permalink:  ../20190218191214.ipkyaetw4mal4pcu@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20190218191214.ipkyaetw4mal4pcu@alap3.anarazel.de

 · 

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

* 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