Re: removal of dangling temp tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: removal of dangling temp tables
Дата
Msg-id 30125.1546014939@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: removal of dangling temp tables  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: removal of dangling temp tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> On 2018-Dec-28, Alvaro Herrera wrote:
>> On 2018-Dec-28, Michael Paquier wrote:
>>> There are many exotic extensions which could be using sizeof(PGPROC)
>>> as that's a popular structure,

>> Can you show one instance of this?

> I looked at
> https://github.com/postgrespro/pg_wait_sampling/blob/master/pg_wait_sampling.c
> https://github.com/citusdata/citus/search?q=pgproc&unscoped_q=pgproc
> and skimmed a few others can't find any instance where the full struct
> is used, as opposed to just a pointer to it.

No, the point Michael is making is that the array stride in the ProcArray
is part of our ABI.  For example, accessing a PGPROC from its pgprocno
using the GetPGProcByNumber macro will be broken if we change the
struct size.  I do not think you can assume that no extension does that.

            regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: removal of dangling temp tables
Следующее
От: Tom Lane
Дата:
Сообщение: Re: add_partial_path() may remove dominated path but still in use