Re: Wanted: ALTER TRIGGER ... OWNED BY EXTENSION

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Wanted: ALTER TRIGGER ... OWNED BY EXTENSION
Дата
Msg-id 20140331191419.GB9567@eldon.alvh.no-ip.org
обсуждение исходный текст
Ответ на Wanted: ALTER TRIGGER ... OWNED BY EXTENSION  (Moshe Jacobson <moshe@neadwerx.com>)
Ответы Re: Wanted: ALTER TRIGGER ... OWNED BY EXTENSION  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Moshe Jacobson wrote:

> Even though I mark the trigger *functions *as owned by my extension, the
> trigger definitions themselves are still dumped by pg_dump and restored by
> pg_restore. This is a problem when pg_restore is using parallelism (-j),
> and one thread starts issuing CREATE TRIGGER commands before the other
> thread has finished populating the config table.

ISTM that the usual locution for this is ALTER EXTENSION .. ADD.  You
could test whether this is going to work by manually inserting rows in
pg_depend.

It seems strange to me that the created trigger is part of the extension,
however.  Maybe it's the right fix, but hmm.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


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

Предыдущее
От: Leonardo M. Ramé
Дата:
Сообщение: Re: Complex query
Следующее
От: David Johnston
Дата:
Сообщение: Re: Complex query