mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Document issues with non-default tablespaces and pg_dumpall restores.
Backpatch documentation addition to 8.1.X.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.79 2006/06/07 22:24:45 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.80 2006/06/16 22:01:17 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -888,7 +888,15 @@ dumpCreateDB(PGconn *conn)
|
||||
appendPQExpBuffer(buf, " ENCODING = ");
|
||||
appendStringLiteralConn(buf, dbencoding, conn);
|
||||
|
||||
/* Output tablespace if it isn't default */
|
||||
/*
|
||||
* Output tablespace if it isn't the default. For default, it
|
||||
* uses the default from the template database. If tablespace
|
||||
* is specified and tablespace creation failed earlier,
|
||||
* (e.g. no such directory), the database creation will fail
|
||||
* too. One solution would be to use 'SET default_tablespace'
|
||||
* like we do in pg_dump for setting non-default database
|
||||
* locations.
|
||||
*/
|
||||
if (strcmp(dbtablespace, "pg_default") != 0)
|
||||
appendPQExpBuffer(buf, " TABLESPACE = %s",
|
||||
fmtId(dbtablespace));
|
||||
|
Reference in New Issue
Block a user