mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Issue 'mkdir' hint when replying CREATE TABLESPACE in recovery mode.
Per idea from Fujii Masao
This commit is contained in:
@ -40,7 +40,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.74 2010/02/26 02:00:39 momjian Exp $
|
* $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.75 2010/07/02 02:44:32 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -552,8 +552,9 @@ create_tablespace_directories(const char *location, const Oid tablespaceoid)
|
|||||||
if (errno == ENOENT)
|
if (errno == ENOENT)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_UNDEFINED_FILE),
|
(errcode(ERRCODE_UNDEFINED_FILE),
|
||||||
errmsg("directory \"%s\" does not exist",
|
errmsg("directory \"%s\" does not exist", location),
|
||||||
location)));
|
InRecovery ? errhint("Create directory \"%s\" for this tablespace before "
|
||||||
|
"restarting the server.", location) : 0));
|
||||||
else
|
else
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode_for_file_access(),
|
(errcode_for_file_access(),
|
||||||
|
Reference in New Issue
Block a user