Skip to content

Commit efa8544

Browse files
committed
Fix a few errors in comments. Patch by Fujii Masao, plus the one in
visibilitymap.c by me.
1 parent f08e5e9 commit efa8544

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-
* restored already, 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 minus except for the standard page header
102-
* is used for the bitmap.
101+
* extra headers, so the whole page minus the standard page header is
102+
* used for the bitmap.
103103
*/
104104
#define MAPSIZE (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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy