|
40 | 40 | *
|
41 | 41 | *
|
42 | 42 | * IDENTIFICATION
|
43 |
| - * $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.74 2010/02/26 02:00:39 momjian Exp $ |
| 43 | + * $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.75 2010/07/02 02:44:32 momjian Exp $ |
44 | 44 | *
|
45 | 45 | *-------------------------------------------------------------------------
|
46 | 46 | */
|
@@ -552,8 +552,9 @@ create_tablespace_directories(const char *location, const Oid tablespaceoid)
|
552 | 552 | if (errno==ENOENT)
|
553 | 553 | ereport(ERROR,
|
554 | 554 | (errcode(ERRCODE_UNDEFINED_FILE),
|
555 |
| -errmsg("directory \"%s\" does not exist", |
556 |
| -location))); |
| 555 | +errmsg("directory \"%s\" does not exist",location), |
| 556 | +InRecovery ?errhint("Create directory \"%s\" for this tablespace before " |
| 557 | +"restarting the server.",location) :0)); |
557 | 558 | else
|
558 | 559 | ereport(ERROR,
|
559 | 560 | (errcode_for_file_access(),
|
|