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
3b65c3b2
Commit
3b65c3b2
authored
Nov 19, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment about COMMENT ON DATABASE failing for differently-named
databases.
parent
5e996e4a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+2
-1
No files found.
src/bin/pg_dump/pg_dump.c
View file @
3b65c3b2
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
* by PostgreSQL
* by PostgreSQL
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.47
7 2007/11/15 22:25:1
6 momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.47
8 2007/11/19 18:44:0
6 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -1530,6 +1530,7 @@ dumpDatabase(Archive *AH)
...
@@ -1530,6 +1530,7 @@ dumpDatabase(Archive *AH)
if
(
comment
&&
strlen
(
comment
))
if
(
comment
&&
strlen
(
comment
))
{
{
resetPQExpBuffer
(
dbQry
);
resetPQExpBuffer
(
dbQry
);
/* This will fail when loaded into a database with a different name. */
appendPQExpBuffer
(
dbQry
,
"COMMENT ON DATABASE %s IS "
,
fmtId
(
datname
));
appendPQExpBuffer
(
dbQry
,
"COMMENT ON DATABASE %s IS "
,
fmtId
(
datname
));
appendStringLiteralAH
(
dbQry
,
comment
,
AH
);
appendStringLiteralAH
(
dbQry
,
comment
,
AH
);
appendPQExpBuffer
(
dbQry
,
";
\n
"
);
appendPQExpBuffer
(
dbQry
,
";
\n
"
);
...
...
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