Re: ALTER tbl rewrite loses CLUSTER ON index

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: ALTER tbl rewrite loses CLUSTER ON index
Дата
Msg-id
20200206172447.GA28041@alvherre.pgsql
Ответ на
Список
Дерево обсуждения
ALTER tbl rewrite loses CLUSTER ON index Justin Pryzby <pryzby@telsasoft.com>
Re: ALTER tbl rewrite loses CLUSTER ON index Amit Langote <amitlangote09@gmail.com>
Re: ALTER tbl rewrite loses CLUSTER ON index Justin Pryzby <pryzby@telsasoft.com>
Re: ALTER tbl rewrite loses CLUSTER ON index Justin Pryzby <pryzby@telsasoft.com>
Re: ALTER tbl rewrite loses CLUSTER ON index Alvaro Herrera <alvherre@2ndquadrant.com>
Re: ALTER tbl rewrite loses CLUSTER ON index (consider movingindisclustered to pg_class) Justin Pryzby <pryzby@telsasoft.com>
Re: ALTER tbl rewrite loses CLUSTER ON index (consider moving indisclustered to pg_class) Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER tbl rewrite loses CLUSTER ON index Justin Pryzby <pryzby@telsasoft.com>
Re: ALTER tbl rewrite loses CLUSTER ON index Justin Pryzby <pryzby@telsasoft.com>
Re: ALTER tbl rewrite loses CLUSTER ON index Michael Paquier <michael@paquier.xyz>
Re: ALTER tbl rewrite loses CLUSTER ON index Michael Paquier <michael@paquier.xyz>
Re: ALTER tbl rewrite loses CLUSTER ON index Justin Pryzby <pryzby@telsasoft.com>
Re: ALTER tbl rewrite loses CLUSTER ON index Justin Pryzby <pryzby@telsasoft.com>
Re: ALTER tbl rewrite loses CLUSTER ON index Ibrar Ahmed <ibrar.ahmad@gmail.com>
Re: ALTER tbl rewrite loses CLUSTER ON index Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER tbl rewrite loses CLUSTER ON index Amit Langote <amitlangote09@gmail.com>
Re: ALTER tbl rewrite loses CLUSTER ON index Justin Pryzby <pryzby@telsasoft.com>
Re: ALTER tbl rewrite loses CLUSTER ON index Alvaro Herrera <alvherre@2ndquadrant.com>
Re: ALTER tbl rewrite loses CLUSTER ON index Michael Paquier <michael@paquier.xyz>
Re: ALTER tbl rewrite loses CLUSTER ON index Justin Pryzby <pryzby@telsasoft.com>
Re: ALTER tbl rewrite loses CLUSTER ON index Michael Paquier <michael@paquier.xyz>
Re: ALTER tbl rewrite loses CLUSTER ON index Michael Paquier <michael@paquier.xyz>
Re: ALTER tbl rewrite loses CLUSTER ON index Justin Pryzby <pryzby@telsasoft.com>
Re: ALTER tbl rewrite loses CLUSTER ON index Michael Paquier <michael@paquier.xyz>
Re: ALTER tbl rewrite loses CLUSTER ON index Michael Paquier <michael@paquier.xyz>
Re: ALTER tbl rewrite loses CLUSTER ON index Alvaro Herrera <alvherre@2ndquadrant.com>
Re: ALTER tbl rewrite loses CLUSTER ON index Michael Paquier <michael@paquier.xyz>
Re: ALTER tbl rewrite loses CLUSTER ON index Michael Paquier <michael@paquier.xyz>
Re: ALTER tbl rewrite loses CLUSTER ON index (consider movingindisclustered to pg_class) Amit Langote <amitlangote09@gmail.com>
Re: ALTER tbl rewrite loses CLUSTER ON index (consider movingindisclustered to pg_class) Justin Pryzby <pryzby@telsasoft.com>
Re: ALTER tbl rewrite loses CLUSTER ON index Amit Langote <amitlangote09@gmail.com>
On 2020-Feb-06, Justin Pryzby wrote:

> I wondered if it wouldn't be better if CLUSTER ON was stored in pg_class as the
> Oid of a clustered index, rather than a boolean in pg_index.

Maybe.  Do you want to try a patch?

> That likely would've avoided (or at least exposed) this issue.
> And avoids the possibility of having two indices marked as "clustered".
> These would be more trivial:
> mark_index_clustered
> /* We need to find the index that has indisclustered set. */

You need to be careful when dropping the index ...

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


В списке pgsql-hackers по дате отправления
От: Fujii Masao
Дата:
От: Andres Freund
Дата:
FAQ