Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
4fff9d72
Commit
4fff9d72
authored
Jun 16, 2006
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document issues with non-default tablespaces and pg_dumpall restores.
Backpatch documentation addition to 8.1.X.
parent
b055f00e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
doc/src/sgml/ref/pg_dumpall.sgml
doc/src/sgml/ref/pg_dumpall.sgml
+8
-1
src/bin/pg_dump/pg_dumpall.c
src/bin/pg_dump/pg_dumpall.c
+10
-2
No files found.
doc/src/sgml/ref/pg_dumpall.sgml
View file @
4fff9d72
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.5
5 2005/11/01 21:09:50 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.5
6 2006/06/16 22:01:17 momjian
Exp $
PostgreSQL documentation
-->
...
...
@@ -377,6 +377,13 @@ PostgreSQL documentation
databases.
</para>
<para>
<application>pg_dumpall</application> requires all needed
tablespace directories to exist before the restore or
database creation will fail for databases in non-default
locations.
</para>
</refsect1>
...
...
src/bin/pg_dump/pg_dumpall.c
View file @
4fff9d72
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment