Re: BUG #18647: INSERT statements execute functions twice.

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: BUG #18647: INSERT statements execute functions twice.
Дата
Msg-id CAKFQuwZ10FfSqKvydqijuHJTSAqCZnF2RHkGhCiEZ58S+qk5Bw@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #18647: INSERT statements execute functions twice.  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
On Wednesday, October 9, 2024, Todd Brandys <brandystodd@gmail.com> wrote:
Here is the CREATE table for party.  It was nothing more than a test table at this time:

CREATE TABLE party (
    uuid uuid NOT NULL,
    date_updated timestamp(0) NOT NULL,
    user_updated     pg_catalog.regrole NOT NULL,
    organization uuid NOT NULL,

    CONSTRAINT pk_party
PRIMARY KEY ( uuid )
);

As an aside, using regrole is not a good idea.  The meaning of the integer that gets saved will change if you perform an upgrade or otherwise have to rebuild the global role catalog table.  User-space should not be storing OID values.

David J. 

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