Re: pgsql: Remove WITH OIDS support, change oid catalog column visibility.
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-committers@lists.postgresql.org
Date: 2019-02-18T19:12:14Z
Lists: pgsql-hackers
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.
Commits
-
Remove line duplicated during conflict resolution.
- 22bc403029c0 12.0 landed
-
Re-add default_with_oids GUC to avoid breaking old dump files.
- de66987adb8a 12.0 landed
-
Remove WITH OIDS support, change oid catalog column visibility.
- 578b229718e8 12.0 cited