diff options
author | Tom Lane | 2004-10-17 20:47:21 +0000 |
---|---|---|
committer | Tom Lane | 2004-10-17 20:47:21 +0000 |
commit | 830c168e5ce40112433fcc4784415a1abacb3e57 (patch) | |
tree | 2d7fdada045a8b7f35d0b8981f9efa775852079f /src/backend/commands/tablespace.c | |
parent | fae7ce83fefdb5de44ca7f364e3258aea8699edc (diff) |
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.
Diffstat (limited to 'src/backend/commands/tablespace.c')
-rw-r--r-- | src/backend/commands/tablespace.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/commands/tablespace.c b/src/backend/commands/tablespace.c index b9fbd2b5eab..1cbeef657ae 100644 --- a/src/backend/commands/tablespace.c +++ b/src/backend/commands/tablespace.c @@ -45,7 +45,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.11 2004/08/30 02:54:38 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.12 2004/10/17 20:47:20 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -75,7 +75,6 @@ static bool remove_tablespace_directories(Oid tablespaceoid, bool redo); static void set_short_version(const char *path); -static bool directory_is_empty(const char *path); /* @@ -680,8 +679,10 @@ set_short_version(const char *path) /* * Check if a directory is empty. + * + * This probably belongs somewhere else, but not sure where... */ -static bool +bool directory_is_empty(const char *path) { DIR *dirdesc; |