Give a more user-friendly error message in situation where CREATE DATABASE
Tom Lane <tgl@sss.pgh.pa.us>
Give a more user-friendly error message in situation where CREATE DATABASE specifies a new default tablespace and the template database already has some tables in that tablespace. There isn't any way to solve this fully without modifying the clone database's pg_class contents, so for now the best we can do is issue a better error message.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/dbcommands.c | modified | +36 −8 |
| src/backend/commands/tablespace.c | modified | +4 −3 |
| src/include/commands/tablespace.h | modified | +3 −1 |