BUG #17360: array_to_string should be immutable instead of stable

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #17360: array_to_string should be immutable instead of stable
Дата
Msg-id 17360-a50d754b72a97cad@postgresql.org
обсуждение исходный текст
Ответы Re: BUG #17360: array_to_string should be immutable instead of stable  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17360
Logged by:          Gergely Czuczy
Email address:      gergely.czuczy@harmless.hu
PostgreSQL version: 13.3
Operating system:   FreeBSD13
Description:

Hello,

The array_to_string function should have a volatility of immutable, it
perfectly fits the requirements in the documentation.

Where this comes to play is generated columns, when one wishes to have a
field something like GENERATED ALWAYS AS (array_to_string(ARRAY[selector,
'_domainkey', subdomain], '.')) STORED.

Reading the documentation I haven't found anything that would prevent the
function from being immutable, and enable this kind of usecases.

Best regards,
Gergely


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

Предыдущее
От: Semab Tariq
Дата:
Сообщение: Re: postgresql bug
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #17360: array_to_string should be immutable instead of stable