diff options
author | Michael Paquier <michael@paquier.xyz> | 2021-04-19 11:32:30 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2021-04-19 11:32:30 +0900 |
commit | 7ef8b52cf079ef3ace4575f7b97c2d6f80463b4f (patch) | |
tree | 9dd7a216019831ea53951e4e08aff564b634dba8 /doc/src | |
parent | c731f9187b5fd7038b04ba60703d3cace1806366 (diff) | |
download | postgresql-7ef8b52cf079ef3ace4575f7b97c2d6f80463b4f.tar.gz postgresql-7ef8b52cf079ef3ace4575f7b97c2d6f80463b4f.zip |
Fix typos and grammar in comments and docs
Author: Justin Pryzby
Discussion: https://postgr.es/m/20210416070310.GG3315@telsasoft.com
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/brin.sgml | 6 | ||||
-rw-r--r-- | doc/src/sgml/ecpg.sgml | 24 |
2 files changed, 15 insertions, 15 deletions
diff --git a/doc/src/sgml/brin.sgml b/doc/src/sgml/brin.sgml index d2f12bb605f..ce7c2105755 100644 --- a/doc/src/sgml/brin.sgml +++ b/doc/src/sgml/brin.sgml @@ -730,7 +730,7 @@ LOG: request for BRIN range summarization for index "brin_wi_idx" page 128 was for <xref linkend="sql-altertable"/>. When set to a positive value, each block range is assumed to contain this number of distinct non-null values. When set to a negative value, which must be greater than or - equal to -1, the number of distinct non-null is assumed linear with + equal to -1, the number of distinct non-null values is assumed to grow linearly with the maximum possible number of tuples in the block range (about 290 rows per block). The default value is <literal>-0.1</literal>, and the minimum number of distinct non-null values is <literal>16</literal>. @@ -833,7 +833,7 @@ typedef struct BrinOpcInfo Returns whether all the ScanKey entries are consistent with the given indexed values for a range. The attribute number to use is passed as part of the scan key. - Multiple scan keys for the same attribute may be passed at once, the + Multiple scan keys for the same attribute may be passed at once; the number of entries is determined by the <literal>nkeys</literal> parameter. </para> </listitem> @@ -1214,7 +1214,7 @@ typedef struct BrinOpcInfo <para> The minmax-multi operator class is also intended for data types implementing - a totally ordered sets, and may be seen as a simple extension of the minmax + a totally ordered set, and may be seen as a simple extension of the minmax operator class. While minmax operator class summarizes values from each block range into a single contiguous interval, minmax-multi allows summarization into multiple smaller intervals to improve handling of outlier values. diff --git a/doc/src/sgml/ecpg.sgml b/doc/src/sgml/ecpg.sgml index 56f5d9b5db1..e67f3e0bf3f 100644 --- a/doc/src/sgml/ecpg.sgml +++ b/doc/src/sgml/ecpg.sgml @@ -354,15 +354,15 @@ current=testdb1 (should be testdb1) </para> <para> - The third option is to declare sql identifier linked to + The third option is to declare a SQL identifier linked to the connection, for example: <programlisting> EXEC SQL AT <replaceable>connection-name</replaceable> DECLARE <replaceable>statement-name</replaceable> STATEMENT; EXEC SQL PREPARE <replaceable>statement-name</replaceable> FROM :<replaceable>dyn-string</replaceable>; </programlisting> - Once you link a sql identifier to a connection, you execute a dynamic SQL - without AT clause. Note that this option behaves like preprocessor directives, - therefore the link is enabled only in the file. + Once you link a SQL identifier to a connection, you execute dynamic SQL + without an AT clause. Note that this option behaves like preprocessor + directives, therefore the link is enabled only in the file. </para> <para> Here is an example program using this option: @@ -6911,15 +6911,15 @@ EXEC SQL [ AT <replaceable class="parameter">connection_name</replaceable> ] DEC <title>Description</title> <para> - <command>DECLARE STATEMENT</command> declares SQL statement identifier. + <command>DECLARE STATEMENT</command> declares a SQL statement identifier. SQL statement identifier can be associated with the connection. - When the identifier is used by dynamic SQL statements, these SQLs are executed - by using the associated connection. - The namespace of the declaration is the precompile unit, and multiple declarations to - the same SQL statement identifier is not allowed. - - Note that if the precompiler run in the Informix compatibility mode and some SQL statement - is declared, "database" can not be used as a cursor name. + When the identifier is used by dynamic SQL statements, the statements + are executed using the associated connection. + The namespace of the declaration is the precompile unit, and multiple + declarations to the same SQL statement identifier are not allowed. + Note that if the precompiler runs in Informix compatibility mode and + some SQL statement is declared, "database" can not be used as a cursor + name. </para> </refsect1> |