Re: Accidentally parallel unsafe functions

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Accidentally parallel unsafe functions
Дата
Msg-id CA+Tgmoa50tm4CxtEk3RHXnYd0S1dRXVR3_ZTHr68a=TMpZAr_w@mail.gmail.com
обсуждение исходный текст
Ответ на Accidentally parallel unsafe functions  (Andreas Karlsson <andreas@proxel.se>)
Ответы Re: Accidentally parallel unsafe functions  (Andreas Karlsson <andreas@proxel.se>)
Список pgsql-hackers
On Fri, Apr 29, 2016 at 6:06 PM, Andreas Karlsson <andreas@proxel.se> 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.
>
> I think this counts as a 9.6 bug unlike my work on adding the flags to all
> extensions which is for 9.7.
>
> I have attached a patch which marks them and all conversion functions as
> parallel safe. I also added the flag to ts_debug() when I was already
> editing system_views.sql, feel free to ignore that one if you like.
>
> Affected functions:
>
> - json_populate_record()
> - json_populate_recordset()
> - jsonb_insert()
> - jsonb_set()
> - make_interval()
> - parse_ident()
> - Loads of conversion functions

Committed all of this except for the bit about pg_start_backup, for
which I committed a separate fix.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: pg_upgrade and toasted pg_largeobject
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: ALTER TABLE lock downgrades have broken pg_upgrade