Re: Triggers or code?

Поиск
Список
Период
Сортировка
От André Fernandes
Тема Re: Triggers or code?
Дата
Msg-id COL112-W18CB91E00A2DE2450FC0458A820@phx.gbl
обсуждение исходный текст
Ответ на Triggers or code?  (DM <dm.aeqa@gmail.com>)
Список pgsql-performance
Trigger is the way to go.

André.


Date: Mon, 23 Aug 2010 11:42:21 -0700
Subject: [PERFORM] Triggers or code?
From: dm.aeqa@gmail.com
To: pgsql-performance@postgresql.org

Hello There,

I have a table x and a history table x_hist, whats the best way to update the history table.

should i need to use triggers or embed a code in my script to update the history table?

what is the performance impact of a trigger versus embedding the code in the script?

thanks for your time.

- Deepak

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

Предыдущее
От: DM
Дата:
Сообщение: Triggers or code?
Следующее
От: David Kerr
Дата:
Сообщение: PARSE WAITING