mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03:00
Don't allow partitioned indexes in pg_global tablespace
Missing in dfa6081419
.
Author: David Rowley
Discussion: https://postgr.es/m/CAKJS1f-M3NMTCpv=vDfkoqHbMPFf=3-Z1ud=+1DHH00tC+zLaQ@mail.gmail.com
This commit is contained in:
@ -10939,6 +10939,12 @@ ATExecPartedIdxSetTableSpace(Relation rel, Oid newTableSpace)
|
||||
|
||||
Assert(rel->rd_rel->relkind == RELKIND_PARTITIONED_INDEX);
|
||||
|
||||
/* Can't allow a non-shared relation in pg_global */
|
||||
if (newTableSpace == GLOBALTABLESPACE_OID)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("only shared relations can be placed in pg_global tablespace")));
|
||||
|
||||
/*
|
||||
* No work if no change in tablespace.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user