Re: CREATE TEMPORARY TABLE LIKE

Поиск
Список
Период
Сортировка
От Jim Vanns
Тема Re: CREATE TEMPORARY TABLE LIKE
Дата
Msg-id CAH7vdhNqswRSCj7RSLf12YZrAet411P3PGiXXTiv-RO0cRtQwA@mail.gmail.com
обсуждение исходный текст
Ответ на CREATE TEMPORARY TABLE LIKE  (Jim Vanns <jvanns@ilm.com>)
Список pgsql-general
I just wrote a little test case... it appears not. Triggers aren't
fired in the temporary table.

Jim

On Thu, 25 May 2023 at 14:06, Jim Vanns <jvanns@ilm.com> wrote:
>
> Hi everyone,
>
> When basing a temporary table of a source table, are triggers included
> by default? I have this statement;
>
> CREATE TEMPORARY TABLE dev_main (
> LIKE prod_main
> INCLUDING ALL
> EXCLUDING INDEXES
> EXCLUDING CONSTRAINTS
> ) ON COMMIT DELETE ROWS;
>
> And wondering if there is a trigger (row-based after) on prod_main
> it'll fire also on dev_main? I can't find anything in the
> documentation that suggests either way nor can I see an explicit
> EXCLUDING option to be sure triggers aren't copied.
>
> Does anyone know?
>
> Cheers,
>
> Jim
>
> --
> Jim Vanns
> Principal Production Engineer
> Industrial Light & Magic, London



-- 
Jim Vanns
Principal Production Engineer
Industrial Light & Magic, London



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

Предыдущее
От: Ron
Дата:
Сообщение: Re: DB migration : Sybase to Postgres
Следующее
От: Erik Wienhold
Дата:
Сообщение: Re: CREATE TEMPORARY TABLE LIKE