Re: pgsql: Remove WITH OIDS support, change oid catalog columnvisibility.

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: pgsql: Remove WITH OIDS support, change oid catalog columnvisibility.
Дата
Msg-id 20190218191214.ipkyaetw4mal4pcu@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: pgsql: Remove WITH OIDS support, change oid catalog columnvisibility.  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-committers
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.


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: Remove line duplicated during conflict resolution.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix omissions in ecpg/test/sql/.gitignore.