Re: RowDescription for a function does not include table OID

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: RowDescription for a function does not include table OID
Дата
Msg-id CAKFQuwZ+_Hmn2oq=DmKyi=h2RJdONLtqH_j_eUdH_oYML3idhA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: RowDescription for a function does not include table OID  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: RowDescription for a function does not include table OID
Список pgsql-general
On Fri, Jun 21, 2024 at 8:51 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:

The PG wire protocol specification [1] defines these fields thus:

        If the field can be identified as a column of a specific
        table, the object ID of the table; otherwise zero.

        If the field can be identified as a column of a specific
        table, the attribute number of the column; otherwise zero.

My reading of that is that we should populate these fields only for
the case of direct selection from a table.

s/can be identified as/is/g  ?

Experience shows people are inferring a lot from "can be identified" so we should remove it.  "is" maybe over-simplifies a bit but in the correct direction.

David J.

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: RowDescription for a function does not include table OID
Следующее
От: Tom Lane
Дата:
Сообщение: Re: RowDescription for a function does not include table OID