|
37 | 37 | *
|
38 | 38 | *
|
39 | 39 | * IDENTIFICATION
|
40 |
| - * $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.32 2006/03/24 04:32:13 tgl Exp $ |
| 40 | + * $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.33 2006/03/29 15:15:43 tgl Exp $ |
41 | 41 | *
|
42 | 42 | *-------------------------------------------------------------------------
|
43 | 43 | */
|
@@ -81,21 +81,21 @@ static void set_short_version(const char *path);
|
81 | 81 | * object in the tablespace, create the subdirectory. If the subdirectory
|
82 | 82 | * already exists, just fall through quietly.
|
83 | 83 | *
|
84 |
| - * If tablespaces are not supported, this is just a no-op; CREATE DATABASE |
85 |
| - * is expected to create the default subdirectory for the database. |
86 |
| - * |
87 | 84 | * isRedo indicates that we are creating an object during WAL replay.
|
88 | 85 | * In this case we will cope with the possibility of the tablespace
|
89 | 86 | * directory not being there either --- this could happen if we are
|
90 | 87 | * replaying an operation on a table in a subsequently-dropped tablespace.
|
91 | 88 | * We handle this by making a directory in the place where the tablespace
|
92 | 89 | * symlink would normally be. This isn't an exact replay of course, but
|
93 | 90 | * it's the best we can do given the available information.
|
| 91 | + * |
| 92 | + * If tablespaces are not supported, you might think this could be a no-op, |
| 93 | + * but you'd be wrong: we still need it in case we have to re-create a |
| 94 | + * database subdirectory (of $PGDATA/base) during WAL replay. |
94 | 95 | */
|
95 | 96 | void
|
96 | 97 | TablespaceCreateDbspace(Oid spcNode, Oid dbNode, bool isRedo)
|
97 | 98 | {
|
98 |
| -#ifdef HAVE_SYMLINK |
99 | 99 | struct stat st;
|
100 | 100 | char *dir;
|
101 | 101 |
|
@@ -178,7 +178,6 @@ TablespaceCreateDbspace(Oid spcNode, Oid dbNode, bool isRedo)
|
178 | 178 | }
|
179 | 179 |
|
180 | 180 | pfree(dir);
|
181 |
| -#endif /* HAVE_SYMLINK */ |
182 | 181 | }
|
183 | 182 |
|
184 | 183 | /*
|
|
0 commit comments