Re: Accidentally parallel unsafe functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Accidentally parallel unsafe functions
Дата
Msg-id 26804.1461971986@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Accidentally parallel unsafe functions  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: Accidentally parallel unsafe functions  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Accidentally parallel unsafe functions  (Andreas Karlsson <andreas@proxel.se>)
Список pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Andreas Karlsson wrote:
>> I am currently looking into adding the correct parallel options to all
>> functions in the extensions and I noticed that some built-in functions seems
>> to have been marked as unsafe by accident. The main culprit is
>> system_views.sql which redefines these functions and removes the parallel
>> safe flag.

> Surely CREATE OR REPLACE should keep whatever the flag was, rather than
> ovewrite it with a bogus value if not specified?  In other words IMO the
> CREATE OR REPLACE code needs changing, not system_views.sql.

Absolutely not!  The definition of CREATE OR REPLACE is that at the end,
the state of the object is predictable from only what the command says.
This is not open for renegotiation.
        regards, tom lane



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Accidentally parallel unsafe functions
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Accidentally parallel unsafe functions