Re: pgsql: Fix tablespace handling for partitioned indexes

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: pgsql: Fix tablespace handling for partitioned indexes
Дата
Msg-id CAKJS1f-M3NMTCpv=vDfkoqHbMPFf=3-Z1ud=+1DHH00tC+zLaQ@mail.gmail.com
обсуждение исходный текст
Ответ на pgsql: Fix tablespace handling for partitioned indexes  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: pgsql: Fix tablespace handling for partitioned indexes  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-committers
On Sun, 4 Nov 2018 at 05:33, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
> Fix tablespace handling for partitioned indexes

While working on something else, I noticed this:

# create table listp (a int) partition by list(a);
CREATE TABLE
# create index on listp (a) tablespace pg_global; -- properly disallowed
ERROR:  only shared relations can be placed in pg_global tablespace
# create index on listp (a);
CREATE INDEX
# alter index listp_a_idx set tablespace pg_global; -- should be disallowed
ALTER INDEX
# create table listp1 partition of listp for values in(1);
ERROR:  only shared relations can be placed in pg_global tablespace

A patch to fix is attached.

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Clarify documentation about PASSWORD in CREATE/ALTER ROLE
Следующее
От: Thomas Munro
Дата:
Сообщение: pgsql: Add WL_EXIT_ON_PM_DEATH pseudo-event.