little mistakes in HS/SR
little mistakes in HS/SR
Hi,
I found some little mistakes in HS/SR code and document.
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml
index 9ae022a..db78b2b 100644
--- a/doc/src/sgml/config.sgml
+++ b/doc/src/sgml/config.sgml
@@ -2000,7 +2000,7 @@ SET ENABLE_SEQSCAN TO OFF;
max_standby_archive_delay</> applies when WAL data is
being read from WAL archive (and is therefore not current).
The default is 30 seconds. Units are milliseconds if not specified.
- A value of -1 allows the standby to wait forever for conflicting
+ A value of -1</> allows the standby to wait forever
for conflicting
queries to complete.
This parameter can only be set in the postgresql.conf</>
file or on the server command line.
@@ -2030,7 +2030,7 @@ SET ENABLE_SEQSCAN TO OFF;
max_standby_streaming_delay</> applies when WAL data is
being received via streaming replication.
The default is 30 seconds. Units are milliseconds if not specified.
- A value of -1 allows the standby to wait forever for conflicting
+ A value of -1</> allows the standby to wait forever
for conflicting
queries to complete.
This parameter can only be set in the postgresql.conf</>
file or on the server command line.
We should enclose -1 with tag.
diff --git a/src/backend/replication/walsender.c
b/src/backend/replication/walsender.c
index 0c4b217..53c2581 100644
--- a/src/backend/replication/walsender.c
+++ b/src/backend/replication/walsender.c
@@ -93,6 +93,7 @@ static volatile sig_atomic_t ready_to_stop = false;
static void WalSndSigHupHandler(SIGNAL_ARGS);
static void WalSndShutdownHandler(SIGNAL_ARGS);
static void WalSndQuickDieHandler(SIGNAL_ARGS);
+static void WalSndLastCycleHandler(SIGNAL_ARGS);
We seems to have forgotten to add the declaration of WalSndLastCycleHandler().
I also attached the context-diff patch.
Regards,
--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center
Re: little mistakes in HS/SR
От:
Robert Haas <robertmhaas@gmail.com>
Дата:
On Thu, Jul 22, 2010 at 1:41 AM, Fujii Masao wrote: > We should enclose -1 with tag. A quick survey of the documentation as a whole suggests that we enclose -1 with in a few places but more commonly we don't. I have no position on whether we should do it or not, but maybe we should try to be consistent throughout the docs? Or at least have a consistent rule for deciding what to do in a particular case? > We seems to have forgotten to add the declaration of WalSndLastCycleHandler(). I've committed this part. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise Postgres Company
Re: little mistakes in HS/SR
От:
Bruce Momjian <bruce@momjian.us>
Дата:
Robert Haas wrote:
> On Thu, Jul 22, 2010 at 1:41 AM, Fujii Masao wrote:
> > We should enclose -1 with tag.
>
> A quick survey of the documentation as a whole suggests that we
> enclose -1 with in a few places but more commonly we don't.
> I have no position on whether we should do it or not, but maybe we
> should try to be consistent throughout the docs? Or at least have a
> consistent rule for deciding what to do in a particular case?
Excellent question. I went through the documentation and removed
tags where appropriate --- there are cases where we are
referencing an actual number, and there makes sense. Applied
patch attached.
I think the larger question is whether we should say "zero" for 0 and
"one" for 1, etc. Prose typography suggests we should, but for
technical manuals, I am not sure. Ideas?
--
Bruce Momjian http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
diff --git a/doc/src/sgml/advanced.sgml b/doc/src/sgml/advanced.sgml
index 9cb7173..11859b4 100644
--- a/doc/src/sgml/advanced.sgml
+++ b/doc/src/sgml/advanced.sgml
@@ -533,7 +533,7 @@ WHERE pos < 3;
The above query only shows the rows from the inner query having
- rank</> less than 3</>.
+ rank</> less than 3.
diff --git a/doc/src/sgml/array.sgml b/doc/src/sgml/array.sgml
index bb4657e..b3ecda5 100644
--- a/doc/src/sgml/array.sgml
+++ b/doc/src/sgml/array.sgml
@@ -259,7 +259,7 @@ SELECT schedule[1:2][1:1] FROM sal_emp WHERE name = 'Bill';
If any dimension is written as a slice, i.e., contains a colon, then all
dimensions are treated as slices. Any dimension that has only a single
- number (no colon) is treated as being from 1</>
+ number (no colon) is treated as being from 1
to the number specified. For example, [2]</> is treated as
[1:2]</>, as in this example:
diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml
index dcbb2c8..62830cb 100644
--- a/doc/src/sgml/backup.sgml
+++ b/doc/src/sgml/backup.sgml
@@ -835,8 +835,8 @@ SELECT pg_stop_backup();
GNU tar</> return an error code indistinguishable from
a fatal error if a file was truncated while tar</> was
copying it. Fortunately, GNU tar</> versions 1.16 and
- later exit with 1</> if a file was changed during the backup,
- and 2</> for other errors.
+ later exit with 1 if a file was changed during the backup,
+ and 2 for other errors.
diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml
index 09152e6..eda82c5 100644
--- a/doc/src/sgml/catalogs.sgml
+++ b/doc/src/sgml/catalogs.sgml
@@ -1455,7 +1455,7 @@
return the cast destination type as their result type. A cast
function can have up to three arguments. The second argument,
if present, must be type integer</>; it receives the type
- modifier associated with the destination type, or -1</>
+ modifier associated with the destination type, or -1
if there is none. The third argument,
if present, must be type boolean</>; it receives true</>
if the cast is an explicit cast, false</> otherwise.
@@ -6541,8 +6541,7 @@
OID of the object within its system catalog, or null if the
object is not a general database object.
For advisory locks it is used to distinguish the two key
- spaces (1</> for an int8 key, 2</> for two
- int4 keys).
+ spaces (1 for an int8 key, 2 for two int4 keys).
diff --git a/doc/src/sgml/client-auth.sgml b/doc/src/sgml/client-auth.sgml
index a7bb2cd..a2c0494 100644
--- a/doc/src/sgml/client-auth.sgml
+++ b/doc/src/sgml/client-auth.sgml
@@ -921,7 +921,7 @@ omicron bryanh guest1
include_realm
- If set to 1</>, the realm name from the authenticated user
+ If set to 1, the realm name from the authenticated user
principal is included in the system user name that's passed through
user name mapping (). This is
useful for handling users from multiple realms.
@@ -992,7 +992,7 @@ omicron bryanh guest1
include_realm
- If set to 1</>, the realm name from the authenticated user
+ If set to 1, the realm name from the authenticated user
principal is included in the system user name that's passed through
user name mapping (). This is
useful for handling users from multiple realms.
@@ -1161,7 +1161,7 @@ omicron bryanh guest1
include_realm
- If set to 1</>, the realm name from the authenticated user
+ If set to 1, the realm name from the authenticated user
principal is included in the system user name that's passed through
user name mapping (). This is
useful for handling users from multiple realms.
@@ -1372,7 +1372,7 @@ omicron bryanh guest1
ldaptls
- Set to 1</> to make the connection between PostgreSQL and the
+ Set to 1 to make the connection between PostgreSQL and the
LDAP server use TLS encryption. Note that this only encrypts
the traffic to the LDAP server — the connection to the client
will still be unencrypted unless SSL is used.
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml
index 68c9462..d2a6445 100644
--- a/doc/src/sgml/config.sgml
+++ b/doc/src/sgml/config.sgml
@@ -3709,7 +3709,7 @@ FROM pg_stat_activity;
A value of zero logs all temporary file information, while positive
values log only files whose size is greater than or equal to
the specified number of kilobytes. The
- default setting is -1</>, which disables such logging.
+ default setting is -1, which disables such logging.
Only superusers can change this setting.
@@ -4228,8 +4228,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
Specifies the cost delay value that will be used in automatic
- VACUUM</> operations. If -1</> is
- specified, the regular
+ VACUUM</> operations. If -1 is specified, the regular
value will be used.
The default value is 20 milliseconds.
This parameter can only be set in the postgresql.conf</>
@@ -4248,7 +4247,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
Specifies the cost limit value that will be used in automatic
- VACUUM</> operations. If -1</> is specified (which is the
+ VACUUM</> operations. If -1 is specified (which is the
default), the regular
value will be used. Note that
the value is distributed proportionally among the running autovacuum
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 28ee62a..2bbada0 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -3705,8 +3705,8 @@ substring('foobar' from 'o(.)b') o
match, the source</> string is returned with the
replacement</> string substituted for the matching
substring. The replacement</> string can contain
- \</>n</>, where n</> is 1</>
- through 9</>, to indicate that the source substring matching the
+ \</>n</>, where n</> is 1
+ through 9, to indicate that the source substring matching the
n</>'th parenthesized subexpression of the pattern should be
inserted, and it can contain \&</> to indicate that the
substring matching the entire pattern should be inserted. Write
diff --git a/doc/src/sgml/high-availability.sgml b/doc/src/sgml/high-availability.sgml
index 31db9ac..94d5ae8 100644
--- a/doc/src/sgml/high-availability.sgml
+++ b/doc/src/sgml/high-availability.sgml
@@ -1913,7 +1913,7 @@ LOG: database system is ready to accept read only connections
advised to select a larger value of max_locks_per_transaction</>,
perhaps as much as twice the value of the parameter on
the primary server. You need not consider this at all if
- your setting of max_prepared_transactions</> is 0</>.
+ your setting of max_prepared_transactions</> is 0.
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml
index 3824588..7131fb4 100644
--- a/doc/src/sgml/libpq.sgml
+++ b/doc/src/sgml/libpq.sgml
@@ -5331,7 +5331,7 @@ int PQsetvalue(PGresult *res, int tup_num, int field_num, char *value, int len);
function can only grow the tuples array one tuple at a time. But any
field of any existing tuple can be modified in any order. If a value at
field_num already exists, it will be overwritten.
- If len is -1 or
+ If len is -1 or
value is NULL</>, the field value
will be set to an SQL null value. The
value is copied into the result's private storage,
diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml
index 5161c8c..4a989df 100644
--- a/doc/src/sgml/runtime.sgml
+++ b/doc/src/sgml/runtime.sgml
@@ -2007,7 +2007,7 @@ pg_dumpall -p 5432 | psql -d postgres -p 5433
certificates of the certificate authorities (CAs)
you trust in the file root.crt in the data
directory, and set the clientcert parameter
- to 1 on the appropriate hostssl</> line(s) in
+ to 1 on the appropriate hostssl</> line(s) in
pg_hba.conf</>.
A certificate will then be requested from the client during
SSL connection startup. (See for a
@@ -2025,7 +2025,7 @@ pg_dumpall -p 5432 | psql -d postgres -p 5433
The clientcert option in pg_hba.conf</> is
available for all authentication methods, but only for rows specified as
hostssl</>. When clientcert is not specified
- or is set to 0</>, the server will still verify presented client
+ or is set to 0, the server will still verify presented client
certificates against root.crt if that file exists
— but it will not insist that a client certificate be presented.
diff --git a/doc/src/sgml/spi.sgml b/doc/src/sgml/spi.sgml
index bb11680..fcee74f 100644
--- a/doc/src/sgml/spi.sgml
+++ b/doc/src/sgml/spi.sgml
@@ -1199,7 +1199,7 @@ int SPI_getargcount(SPIPlanPtr plan)
The count of expected arguments for the plan.
If the plan is NULL or invalid,
SPI_result is set to SPI_ERROR_ARGUMENT
- and -1 is returned.
+ and -1 is returned.
diff --git a/doc/src/sgml/tsearch2.sgml b/doc/src/sgml/tsearch2.sgml
index c66459f..1933e2b 100644
--- a/doc/src/sgml/tsearch2.sgml
+++ b/doc/src/sgml/tsearch2.sgml
@@ -163,7 +163,7 @@
due to failure to recreate the original tsearch2</>
objects. These errors can be ignored, but this means you cannot
restore the dump in a single transaction (eg, you cannot use
- pg_restore</>'s -1</> switch).
+ pg_restore</>'s
Re: little mistakes in HS/SR
От:
Robert Haas <robertmhaas@gmail.com>
Дата:
On Sun, Feb 6, 2011 at 6:44 PM, Bruce Momjian wrote: > Robert Haas wrote: >> On Thu, Jul 22, 2010 at 1:41 AM, Fujii Masao wrote: >> > We should enclose -1 with tag. >> >> A quick survey of the documentation as a whole suggests that we >> enclose -1 with in a few places but more commonly we don't. >> I have no position on whether we should do it or not, but maybe we >> should try to be consistent throughout the docs? Or at least have a >> consistent rule for deciding what to do in a particular case? > > Excellent question. I went through the documentation and removed > tags where appropriate --- there are cases where we are > referencing an actual number, and there makes sense. Applied > patch attached. > > I think the larger question is whether we should say "zero" for 0 and > "one" for 1, etc. Prose typography suggests we should, but for > technical manuals, I am not sure. Ideas? I am doubtful that this makes sense in general. I suspect it depends somewhat on context. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Re: little mistakes in HS/SR
От:
Bruce Momjian <bruce@momjian.us>
Дата:
Robert Haas wrote: > On Sun, Feb 6, 2011 at 6:44 PM, Bruce Momjian wrote: > > Robert Haas wrote: > >> On Thu, Jul 22, 2010 at 1:41 AM, Fujii Masao wrote: > >> > We should enclose -1 with tag. > >> > >> A quick survey of the documentation as a whole suggests that we > >> enclose -1 with in a few places but more commonly we don't. > >> I have no position on whether we should do it or not, but maybe we > >> should try to be consistent throughout the docs? ?Or at least have a > >> consistent rule for deciding what to do in a particular case? > > > > Excellent question. ?I went through the documentation and removed > > tags where appropriate --- there are cases where we are > > referencing an actual number, and there makes sense. ?Applied > > patch attached. > > > > I think the larger question is whether we should say "zero" for 0 and > > "one" for 1, etc. ?Prose typography suggests we should, but for > > technical manuals, I am not sure. ?Ideas? > > I am doubtful that this makes sense in general. I suspect it depends > somewhat on context. We do spell out "zero" in a few cases where it makes sense, so it seems we need no change here. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +