Re: [HACKERS] Shouldn't duplicate addition to publication be a no-op?

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [HACKERS] Shouldn't duplicate addition to publication be a no-op?
Дата
Msg-id CA+TgmobyyOuGRHfgwVrdJvbVkVYJC9Pm6NewkhSVvnvFXdfbQQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Shouldn't duplicate addition to publication be a no-op?  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Ответы Re: [HACKERS] Shouldn't duplicate addition to publication be a no-op?
Список pgsql-hackers
On Sun, Apr 16, 2017 at 11:58 PM, Amit Langote
<Langote_Amit_f8@lab.ntt.co.jp> wrote:
> By the way, Petr said in the other thread that it could be made a no-op
> (presumably without requiring IF NOT EXISTS) on the grounds that
> membership of table in publication is "soft object" or "property" rather
> than real object.

I don't find that argument terribly convincing.

The nearest parallel that we have for this is probably:

ALTER EXTENSION name ADD member_object;
ALTER EXTENSION name DROP member_object;

I would guess this ought to work similarly.

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



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

Предыдущее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: [HACKERS] Should pg_current_wal_location() becomepg_current_wal_lsn()
Следующее
От: Fabien COELHO
Дата:
Сообщение: [HACKERS] pgbench tap tests & minor fixes