Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit944dec1

Browse files
committed
Improve pg_dump template1 error message.
1 parent0cfd97e commit944dec1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎src/bin/pg_dump/pg_dump.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
*
2323
* IDENTIFICATION
24-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.120 1999/09/23 19:11:09 momjian Exp $
24+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.121 1999/10/10 14:42:44 momjian Exp $
2525
*
2626
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
2727
*
@@ -3070,14 +3070,16 @@ findLastBuiltinOid(void)
30703070
if (res==NULL||
30713071
PQresultStatus(res)!=PGRES_TUPLES_OK)
30723072
{
3073-
fprintf(stderr,"pg_dump error in finding the template1 database. Explanation from backend: '%s'.\n",PQerrorMessage(g_conn));
3073+
fprintf(stderr,"pg_dump error in finding the template1 database.");
3074+
fprintf(stderr,"Explanation from backend: '%s'.\n",PQerrorMessage(g_conn));
30743075
exit_nicely(g_conn);
30753076
}
30763077
ntups=PQntuples(res);
30773078
if (ntups!=1)
30783079
{
3079-
fprintf(stderr,"pg_dump: couldn't find the template1 database. "
3080-
"You are really hosed.\nGiving up.\n");
3080+
fprintf(stderr,"pg_dump: couldn't find the template1 database.\n");
3081+
fprintf(stderr,"Check the table pg_database for a problem.\n");
3082+
fprintf(stderr,"There should be exactly one 'template1' entry\n");
30813083
exit_nicely(g_conn);
30823084
}
30833085
last_oid=atoi(PQgetvalue(res,0,PQfnumber(res,"oid")));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp