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

Commitefa8544

Browse files
committed
Fix a few errors in comments. Patch by Fujii Masao, plus the one in
visibilitymap.c by me.
1 parentf08e5e9 commitefa8544

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

‎contrib/pg_standby/pg_standby.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.23 2009/06/11 14:48:51 momjian Exp $
2+
* $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.24 2009/06/18 10:08:08 heikki Exp $
33
*
44
*
55
* pg_standby.c
@@ -448,7 +448,7 @@ CheckForExternalTrigger(void)
448448
/*
449449
* Turn it into a "smart" trigger by truncating the file. Otherwise if
450450
* the server asks us again to restore a segment that was restored
451-
*restoredalready, we would return "not found" and upset the server.
451+
* already, we would return "not found" and upset the server.
452452
*/
453453
if (ftruncate(fd,0)<0)
454454
{

‎src/backend/access/heap/visibilitymap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/heap/visibilitymap.c,v 1.4 2009/06/11 14:48:54 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/heap/visibilitymap.c,v 1.5 2009/06/18 10:08:08 heikki Exp $
1212
*
1313
* INTERFACE ROUTINES
1414
*visibilitymap_clear - clear a bit in the visibility map
@@ -98,8 +98,8 @@
9898

9999
/*
100100
* Size of the bitmap on each visibility map page, in bytes. There's no
101-
* extra headers, so the whole page minusexcept forthe standard page header
102-
*isused for the bitmap.
101+
* extra headers, so the whole page minus the standard page header is
102+
* used for the bitmap.
103103
*/
104104
#defineMAPSIZE (BLCKSZ - MAXALIGN(SizeOfPageHeaderData))
105105

‎src/backend/tcop/postgres.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.567 2009/06/11 14:49:02 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.568 2009/06/18 10:08:08 heikki Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -2924,8 +2924,8 @@ PostgresMain(int argc, char *argv[], const char *username)
29242924
*If the databasename is omitted it is taken to be the user name.
29252925
*
29262926
*When started from the postmaster, the format is
2927-
*postgres [secure switches] -p databasename [insecure switches]
2928-
*Switches appearing after -p came from the client (via "options"
2927+
*postgres [secure switches] -y databasename [insecure switches]
2928+
*Switches appearing after -y came from the client (via "options"
29292929
*field of connection request). For security reasons we restrict
29302930
*what these switches can do.
29312931
* ----------------
@@ -2938,7 +2938,7 @@ PostgresMain(int argc, char *argv[], const char *username)
29382938
argc--;
29392939
}
29402940

2941-
/* all options are allowed until '-p' */
2941+
/* all options are allowed until '-y' */
29422942
secure= true;
29432943
ctx=PGC_POSTMASTER;
29442944
gucsource=PGC_S_ARGV;/* initial switches came from command line */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp