RE: Unique constraint across all partitions?

Поиск
Список
Период
Сортировка
От Michel SALAIS
Тема RE: Unique constraint across all partitions?
Дата
Msg-id 00c201d6f3d4$381f9ae0$a85ed0a0$@msym.fr
обсуждение исходный текст
Ответ на RE: Unique constraint across all partitions?  (Kanninen Anssi EXT <Anssi.Kanninen@digia.com>)
Список pgsql-admin

Hi all,

 

Global indexes are useful in Oracle for performance when indexed columns are different from partitioning key. An “index scan” (well it is named “range scan” in Oracle) using a local index has to navigate through all index partitions in that case. For a global index, it is only one tree to scan and this is more efficient than doing the same for a lot of them.

 

Regards

 

Michel SALAIS

Consultant Oracle, PostgreSQL

MSYM

23 rue du Départ

Boîte 37

75014 Paris

 

+33 6 68 94 19 60

msalais@msym.fr

www.msym.fr

 

De : Kanninen Anssi EXT <Anssi.Kanninen@digia.com>
Envoyé : mardi 26 janvier 2021 11:09
À : pgsql-admin@lists.postgresql.org
Objet : RE: Unique constraint across all partitions?

 

But why use global indexes?
Oracle also has local partitioned indexes which are just like we would like to have in PostgreSQL.

 

From: Victor Yegorov <vyegorov@gmail.com>
Sent: tiistai 26. tammikuuta 2021 11.54
To: Thomas Kellerer <shammat@gmx.net>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: Unique constraint across all partitions?

 

вт, 26 янв. 2021 г. в 09:48, Thomas Kellerer <shammat@gmx.net>:

> Global indexes are likely more pain than gain.

While not extremely popular, many Oracle users do find them useful.


I've heard and been advised many times exactly the opposite for ORACLE,
especially when performance is important.

Global indexes makes a 15-minute maintenance job into a 9-hour downtime experience.


 

--

Victor Yegorov

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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: Unique constraint across all partitions?
Следующее
От: Dirk Krautschick
Дата:
Сообщение: productive usage of PostgreSQL with Windows Server