]> granicus.if.org Git - postgresql/commit
Fix default_tablespace usage for partitioned tables
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 7 Jun 2019 04:44:17 +0000 (00:44 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 7 Jun 2019 04:44:17 +0000 (00:44 -0400)
commita36c84c3e4a9bee6baa740848f67a5db3fa279b0
tree58c76b721006622f1bbd491ba86a7eca42ee3d5f
parentd8261595bc6f5189896cdce6861915ac23830e7c
Fix default_tablespace usage for partitioned tables

In commit 87259588d0ab I (Álvaro) tried to rationalize the determination
of tablespace to use for partitioned tables, but failed to handle the
default_tablespace case.  Repair and add proper tests.

Author: Amit Langote, Rushabh Lathia
Reported-by: Rushabh Lathia
Reviewed-by: Amit Langote, Álvaro Herrera
Discussion: https://postgr.es/m/CAGPqQf0cYjm1=rjxk_6gU0SjUS70=yFUAdCJLwWzh9bhNJnyVg@mail.gmail.com
src/backend/commands/tablecmds.c
src/test/regress/input/tablespace.source
src/test/regress/output/tablespace.source