git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: ceadcbe) | patch
Fix tablespace handling for partitioned indexes
Sat, 3 Nov 2018 16:23:40 +0000 (13:23 -0300)
Sat, 3 Nov 2018 16:25:19 +0000 (13:25 -0300)
commit dfa6081419829ef60d6bc02691616337eeb7f988
Fix tablespace handling for partitioned indexes

When creating partitioned indexes, the tablespace was not being saved
for the parent index. This meant that subsequently created partitions
would not use the right tablespace for their indexes.

ALTER INDEX SET TABLESPACE and ALTER INDEX ALL IN TABLESPACE raised
errors when tried; fix them too. This requires bespoke code for
ATExecCmd() that applies to the special case when the tablespace move is
just a catalog change.

Discussion: https://postgr.es/m/20181102003138.uxpaca6qfxzskepi@alvherre.pgsql
src/backend/catalog/heap.c diff | blob | blame | history
src/backend/commands/tablecmds.c diff | blob | blame | history
src/test/regress/input/tablespace.source diff | blob | blame | history
src/test/regress/output/tablespace.source diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /