Re: partitioned indexes and tablespaces

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: partitioned indexes and tablespaces
Дата
Msg-id 20181102150238.sthbehzz756auovh@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: partitioned indexes and tablespaces  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Ответы Re: partitioned indexes and tablespaces  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 2018-Nov-02, Amit Langote wrote:

> On 2018/11/02 10:27, Michael Paquier wrote:

> > It seems to me that the current behavior is wanted in this case, because
> > partitioned tables and partitioned indexes have no physical storage.
> 
> Keith Fiske complained about this behavior for partitioned *tables* a few
> months ago, which led to the following discussion:
> 
>
https://www.postgresql.org/message-id/flat/CAKJS1f9PXYcT%2Bj%3DoyL-Lquz%3DScNwpRtmD7u9svLASUygBdbN8w%40mail.gmail.com
> 
> It's Michael's message that was the last one on that thread. :)
> 
> https://www.postgresql.org/message-id/20180413224007.GB27295%40paquier.xyz

I agree with Fiske, FWIW.  I think the current behavior results because
people (including me) overlooked things, not because it was designed
explicitly that way.

> By the way, if we decide to do something about this, I think we do the
> same for partitioned tables.

I'm up for changing the behavior of partitioned tables in pg12 (please
send a patch), but I'm up for changing the behavior of partitioned
tables in pg11.

> There are more than one interesting
> behaviors possible that are mentioned in the above thread for when
> parent's reltablespace is set/changed.

I'm *NOT* proposing to move existing partitions to another tablespace,
in any case.

> IOW, I agree with Michael that if something will be back-patched to 11, it
> should be a small patch to make the unsupported relkind error go away.

I don't.

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


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

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: PG vs macOS Mojave
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PG vs macOS Mojave