Re: Command Triggers, v16

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Command Triggers, v16
Дата
Msg-id CA+TgmoZZ9Rqf4_QJ3MGpFFB0FvypnCGoj7nUZ5cBozFHgCoGoQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Command Triggers, v16  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Список pgsql-hackers
On Mon, Mar 26, 2012 at 3:24 PM, Dimitri Fontaine
<dimitri@2ndquadrant.fr> wrote:
> One use case would be for londiste/slony/bucardo to rewrite the command
> and queue its text, that will be done in C and should probably be done
> first. Using an ANY command trigger means that code will run before user
> specific code (or likewise after it).

And, if the user wants it to be run first, he or she can do that.  But
suppose he wants to run it first, and also forbid users whose username
starts with the letter b from running the ANALYZE command.  Well,
then, he now wants that trigger to come before the other one, even
though the Slony trigger is for all commands (maybe) and the other
just for ANALYZE (maybe).

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Remove dead assignment
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Command Triggers, v16