Allow SET TABLESPACE to database default
Allow SET TABLESPACE to database default

We've always allowed CREATE TABLE to create tables in the database's default
tablespace without checking for CREATE permissions on that tablespace.
Unfortunately, the original implementation of ALTER TABLE ... SET TABLESPACE
didn't pick up on that exception.

This changes ALTER TABLE ... SET TABLESPACE to allow the database's default
tablespace without checking for CREATE rights on that tablespace, just as
CREATE TABLE works today.  Users could always do this through a series of
commands (CREATE TABLE ... AS SELECT * FROM ...; DROP TABLE ...; etc), so
let's fix the oversight in SET TABLESPACE's original implementation.

techdragon/Postgres-XL,oberstet/postgres-xl,xinzweb/gpdb,yazun/postgres-xl,ovr/postgres-xl,ashwinstar/gpdb,xinzweb/gpdb,50wu/gpdb,yazun/postgres-xl,Postgres-XL/Postgres-XL,pavanvd/postgres-xl,techdragon/Postgres-XL,adam8157/gpdb,zeroae/postgres-xl,adam8157/gpdb,50wu/gpdb,ashwinstar/gpdb,pavanvd/postgres-xl,greenplum-db/gpdb,50wu/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,adam8157/gpdb,lisakowen/gpdb,greenplum-db/gpdb,Postgres-XL/Postgres-XL,greenplum-db/gpdb,zeroae/postgres-xl,yazun/postgres-xl,ovr/postgres-xl,adam8157/gpdb,jmcatamney/gpdb,yazun/postgres-xl,jmcatamney/gpdb,Postgres-XL/Postgres-XL,jmcatamney/gpdb,ashwinstar/gpdb,lisakowen/gpdb,adam8157/gpdb,oberstet/postgres-xl,ashwinstar/gpdb,zeroae/postgres-xl,ovr/postgres-xl,lisakowen/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,yazun/postgres-xl,greenplum-db/gpdb,lisakowen/gpdb,50wu/gpdb,pavanvd/postgres-xl,adam8157/gpdb,oberstet/postgres-xl,zeroae/postgres-xl,xinzweb/gpdb,ovr/postgres-xl,lisakowen/gpdb,ashwinstar/gpdb,xinzweb/gpdb,50wu/gpdb,zeroae/postgres-xl,greenplum-db/gpdb,ovr/postgres-xl,pavanvd/postgres-xl,xinzweb/gpdb,xinzweb/gpdb,techdragon/Postgres-XL,pavanvd/postgres-xl,adam8157/gpdb,xinzweb/gpdb,50wu/gpdb,jmcatamney/gpdb,oberstet/postgres-xl,techdragon/Postgres-XL,jmcatamney/gpdb,greenplum-db/gpdb,xinzweb/gpdb,lisakowen/gpdb,adam8157/gpdb,Postgres-XL/Postgres-XL,ashwinstar/gpdb,oberstet/postgres-xl,techdragon/Postgres-XL,50wu/gpdb,lisakowen/gpdb,greenplum-db/gpdb,lisakowen/gpdb,50wu/gpdb,Postgres-XL/Postgres-XL