Re: order of pg_dump command "create sequence"

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: order of pg_dump command "create sequence"
Дата
Msg-id CAKFQuwYXJ11+wMu-qrLi9yQwZYjDsgJH=h6aStyxcHti=gYC+g@mail.gmail.com
обсуждение исходный текст
Ответ на order of pg_dump command "create sequence"  (Антон Глушаков <a.glushakov86@gmail.com>)
Ответы Re: order of pg_dump command "create sequence"
Re: order of pg_dump command "create sequence"
Список pgsql-admin
On Friday, June 6, 2025, Антон Глушаков <a.glushakov86@gmail.com> wrote:

/* create a function that will move the sequence */
CREATE FUNCTION public.gen_id() RETURNS character varying
LANGUAGE sql IMMUTABLE AS
$$
SELECT 'PREFIX_'||nextval('public.my_seq'::regclass)::VARCHAR;
$$;



Stating immutable is a lie and the breakage is on your head for violating using only immutable functions in generated expressions.

David J.

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