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

Commitc2010d8

Browse files
committed
fix for initdb --debug core dump, from Tatsuo Ishii
1 parentc666255 commitc2010d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/bootstrap/bootstrap.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.17 1997/03/14 23:18:32 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.18 1997/06/25 21:12:19 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -484,7 +484,7 @@ boot_openrel(char *relname)
484484
}
485485

486486
if (!Quiet)
487-
printf("Amopen: relation %s. attrsize %d\n",relname,
487+
printf("Amopen: relation %s. attrsize %d\n",relname ?relname :"(null)",
488488
(int)ATTRIBUTE_TUPLE_SIZE);
489489

490490
reldesc=heap_openr(relname);
@@ -530,7 +530,7 @@ closerel(char *name)
530530
if (reldesc) {
531531
if (namestrcmp(RelationGetRelationName(reldesc),name)!=0)
532532
elog(WARN,"closerel: close of '%s' when '%s' was expected",
533-
name,relname);
533+
name,relname ?relname :"(null)");
534534
}else
535535
elog(WARN,"closerel: close of '%s' before any relation was opened",
536536
name);
@@ -540,7 +540,7 @@ closerel(char *name)
540540
if (reldesc==NULL) {
541541
elog(WARN,"Warning: no opened relation to close.\n");
542542
}else {
543-
if (!Quiet)printf("Amclose: relation %s.\n",relname);
543+
if (!Quiet)printf("Amclose: relation %s.\n",relname ?relname :"(null)");
544544
heap_close(reldesc);
545545
reldesc= (Relation)NULL;
546546
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp