plpgsql: copy all columns inside a trigger

Поиск
Список
Период
Сортировка
От Andreas Scherbaum
Тема plpgsql: copy all columns inside a trigger
Дата
Msg-id 3C987A1D.616999C1@htl.de
обсуждение исходный текст
Список pgsql-general
Hello,

i got a little problem:

I have a trigger fired up after insert and want to copy all colums
from NEW into another table (without knowing the exact column
names, but the target table also contains the same column names).
Is it possible to create the appropriate query in plpgsql?
The reason for this procedure is: i want to use the same trigger
for more tables and be flexible without creating a single
trigger for every new table.

Any hints?


Best regards

--
            Andreas 'ads' Scherbaum


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

Предыдущее
От: TPCCUVA
Дата:
Сообщение: CHECKPOINTS.
Следующее
От: TPCCUVA
Дата:
Сообщение: problem with begin transacction.