Fix CREATE TABLE ... LIKE ... INCLUDING INDEXES to not cause unwanted
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Feb 2008 17:09:51 +0000 (17:09 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Feb 2008 17:09:51 +0000 (17:09 +0000)
commit09448eba44b477d3d6cf62e191af8164a9367603
tree575370fcbb9afcd3ddd76ab39ffa698622ef419d
parent5e0ccc3785b615b13bbb65570342fc89a87b1fb0
Fix CREATE TABLE ... LIKE ... INCLUDING INDEXES to not cause unwanted
tablespace permissions failures when copying an index that is in the
database's default tablespace.  A side-effect of the change is that explicitly
specifying the default tablespace no longer triggers a permissions check;
this is not how it was done in pre-8.3 releases but is argued to be more
consistent.  Per bug #3921 from Andrew Gilligan.  (Note: I argued in the
subsequent discussion that maybe LIKE shouldn't copy index tablespaces
at all, but since no one indicated agreement with that idea, I've refrained
from doing it.)
src/backend/commands/indexcmds.c
src/backend/commands/tablecmds.c
src/backend/executor/execMain.c
src/backend/parser/parse_utilcmd.c
src/include/nodes/parsenodes.h