Re: How to catch a command

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: How to catch a command
Дата
Msg-id 66F1B650-7A60-46F2-83E1-54B2C0FB0753@pgedit.com
обсуждение исходный текст
Ответ на How to catch a command  (Humberto Carvalho <carvalho.humberto@gmail.com>)
Ответы Re: How to catch a command  (Humberto Carvalho <carvalho.humberto@gmail.com>)
Список pgsql-novice
On Jul 22, 2005, at 9:13 AM, Humberto Carvalho wrote:

> Anyone know if it's possible to catch a Select, delete, update or
> insert command before he takes effect in the postgres database?
>
> I hope someone can help me.

You can use triggers for delete, update, and insert. Rules can work
on everything including select statements. See

http://www.postgresql.org/docs/8.0/interactive/sql-createrule.html






John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


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

Предыдущее
От: Michael Guerin
Дата:
Сообщение: Re: duplicate key violates unique constraint. (repost)
Следующее
От: Humberto Carvalho
Дата:
Сообщение: Re: How to catch a command