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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 0e88ba1) | patch
Fix tablespace handling for partitioned indexes
Sat, 3 Nov 2018 16:23:37 +0000 (13:23 -0300)
Sat, 3 Nov 2018 16:25:29 +0000 (13:25 -0300)
commit 33e6c34c32677a168bee4bc6c335aa8d73211a56
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 によって変換されたページ (->オリジナル) /