Re: Best Approach for Swapping a Table with its Copy

Поиск
Список
Период
Сортировка
От Greg Sabino Mullane
Тема Re: Best Approach for Swapping a Table with its Copy
Дата
Msg-id CAKAnmmLcD9y9WMTNCuPfhGOW17KS-+9kKo44Ve85CHu+YJ8WCA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Best Approach for Swapping a Table with its Copy  (Michał Kłeczek <michal@kleczek.org>)
Список pgsql-general
On Fri, Feb 14, 2025 at 1:02 AM Michał Kłeczek <michal@kleczek.org> wrote:
Create index concurrently and then fiddle with the catalog tables to define the constraint using this index?

You mean an ALTER TABLE ... ADD CONSTRAINT ... EXCLUDE without actually doing an ALTER TABLE. Nope, that's far worse than the pg_repack shenanigans, as we would be creating new catalog objects.

Ideally would be that someone adds support for USING INDEX for an exclusion constraint. 

Cheers,
Greg

--
Enterprise Postgres Software Products & Tech Support

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