Re: pgsql: Remove absolete function TupleDescGetSlot().

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: pgsql: Remove absolete function TupleDescGetSlot().
Дата
Msg-id 20180926014251.zrn27ljtqlqjzswx@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: pgsql: Remove absolete function TupleDescGetSlot().  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: pgsql: Remove absolete function TupleDescGetSlot().  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On 2018-09-26 10:38:51 +0900, Michael Paquier wrote:
> On Tue, Sep 25, 2018 at 05:10:39PM -0700, Andres Freund wrote:
> >> git grep TupleDescGetSlot
> >> doc/src/sgml/xfunc.sgml:     * user-defined SRFs that use the deprecated TupleDescGetSlot().
> >> src/include/funcapi.h:   * user-defined SRFs that use the deprecated TupleDescGetSlot().
> > 
> > But here I'm less convinced. It's not entirely clear to me that the only
> > real reason for this to exists actually was TupleDescGetSlot(). OTOH, I
> > can't really see any proper reason to have it either.
> 
> I have not been following the recent thread about the refactoring of
> TupleSlot and such very closely, but if you don't plan to use
> TupleTableSlot in FuncCallContext in the future, cannot this just go
> away?  The function is not here anymore, so my take would be to get rid
> of all things which relied on its presence.

My point is that FuncCallContext->slot isn't actually all that related
to TupleDescGetSlot() and could be used entirely independently.

Greetings,

Andres Freund


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: pgsql: Remove absolete function TupleDescGetSlot().
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Segfault when creating partition with a primary key and sql_droptrigger exists