Skip to content

Commit ed63026

Browse files
committed
fix编译错误
1 parent 9454ea9 commit ed63026

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+2952
-356
lines changed

postgresql/doc/src/sgml/array.sgml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,14 +1237,16 @@ SELECT * FROM sal_emp WHERE pay_by_quarter && ARRAY[10000];
12371237

12381238
<programlisting>
12391239
SELECT array_position(ARRAY['sun','mon','tue','wed','thu','fri','sat'], 'mon');
1240-
array_positions
1241-
-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-
1242-
2
1240+
array_position
1241+
-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;
1242+
2
1243+
(1 row)
12431244

12441245
SELECT array_positions(ARRAY[1, 4, 3, 1, 3, 4, 2, 1], 1);
12451246
array_positions
12461247
-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-
12471248
{1,4,8}
1249+
(1 row)
12481250
</programlisting>
12491251
</para>
12501252
____________________________________________________________________________-->

postgresql/doc/src/sgml/config.sgml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11986,6 +11986,8 @@ CREATE TABLE postgres_log
1198611986
<programlisting>
1198711987
COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
1198811988
</programlisting>
11989+
It is also possible to access the file as a foreign table, using
11990+
the supplied <xref linkend="file-fdw"/> module.
1198911991
</para>
1199011992
____________________________________________________________________________-->
1199111993
<para>

postgresql/doc/src/sgml/ddl.sgml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,8 @@ ____________________________________________________________________________-->
552552
defined to be a generated column or not.
553553
</para>
554554
</listitem>
555+
</itemizedlist>
556+
</listitem>
555557
</itemizedlist>
556558
</para>
557559
____________________________________________________________________________-->
@@ -8124,7 +8126,7 @@ SELECT count(*) FROM measurement WHERE logdate &gt;= DATE '2008-01-01';
81248126
SET enable_partition_pruning = off;
81258127
EXPLAIN SELECT count(*) FROM measurement WHERE logdate &gt;= DATE '2008-01-01';
81268128
QUERY PLAN
8127-
-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-
8129+
-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&zwsp;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;-&minus;
81288130
Aggregate (cost=188.76..188.77 rows=1 width=8)
81298131
-&gt; Append (cost=0.00..181.05 rows=3085 width=0)
81308132
-&gt; Seq Scan on measurement_y2006m02 (cost=0.00..33.12 rows=617 width=0)

postgresql/doc/src/sgml/dml.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ DELETE FROM products;
463463

464464
<sect1 id="dml-returning">
465465
<!--==========================orignal english content==========================
466-
<title>Returning Data From Modified Rows</title>
466+
<title>Returning Data from Modified Rows</title>
467467
____________________________________________________________________________-->
468468
<title>从修改的行中返回数据</title>
469469

postgresql/doc/src/sgml/ecpg.sgml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14690,7 +14690,6 @@ ____________________________________________________________________________-->
1469014690
EXEC SQL WHENEVER NOT FOUND CONTINUE;
1469114691
EXEC SQL WHENEVER NOT FOUND DO BREAK;
1469214692
EXEC SQL WHENEVER NOT FOUND DO CONTINUE;
14693-
EXEC SQL WHENEVER NOT FOUND DO CONTINUE;
1469414693
EXEC SQL WHENEVER SQLWARNING SQLPRINT;
1469514694
EXEC SQL WHENEVER SQLWARNING DO warn();
1469614695
EXEC SQL WHENEVER SQLERROR sqlprint;

postgresql/doc/src/sgml/glossary.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ ____________________________________________________________________________-->
466466
</para>
467467
____________________________________________________________________________-->
468468
<para>
469-
通过<glossterm linkend="glossary-connection">connecting</glossterm>到<glossterm linkend="glossary-instance">instance</glossterm与<glossterm linkend="glossary-database">database</glossterm>交互来建立<glossterm linkend="glossary-session">session</glossterm>的任何进程,可能是远程的。
469+
通过<glossterm linkend="glossary-connection">connecting</glossterm>到<glossterm linkend="glossary-instance">instance</glossterm>与<glossterm linkend="glossary-database">database</glossterm>交互来建立<glossterm linkend="glossary-session">session</glossterm>的任何进程,可能是远程的。
470470
</para>
471471
</glossdef>
472472
</glossentry>

postgresql/doc/src/sgml/high-availability.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ ____________________________________________________________________________-->
14771477
</para>
14781478
____________________________________________________________________________-->
14791479
<para>
1480-
你可以通过<link linkend="monitoring-pg-stat-replication-view"><structname>视图检索 WAL 发送者进程的列表。
1480+
你可以通过<link linkend="monitoring-pg-stat-replication-view"><structname>pg_stat_replication</structname></link>视图检索 WAL 发送者进程的列表。
14811481
<function>pg_current_wal_lsn</function>与<literal>sent_lsn</literal>域之间的巨大差异表示主服务器承受着巨大的负载,而<literal>sent_lsn</literal>和后备服务器上<function>pg_last_wal_receive_lsn</function>之间的差异可能表示网络延迟或者后备服务器正承受着巨大的负载。
14821482
</para>
14831483
<!--==========================orignal english content==========================

postgresql/doc/src/sgml/indexam.sgml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ typedef struct IndexAmRoutine
139139
uint16 amstrategies;
140140
/* total number of support functions that this AM uses */
141141
uint16 amsupport;
142+
/* opclass options support function number or 0 */
143+
uint16 amoptsprocnum;
142144
/* does AM support ORDER BY indexed column's value? */
143145
bool amcanorder;
144146
/* does AM support ORDER BY result of an operator on indexed column? */
@@ -165,6 +167,10 @@ typedef struct IndexAmRoutine
165167
bool amcanparallel;
166168
/* does AM support columns included with clause INCLUDE? */
167169
bool amcaninclude;
170+
/* does AM use maintenance_work_mem? */
171+
bool amusemaintenanceworkmem;
172+
/* OR of parallel vacuum flags */
173+
uint8 amparallelvacuumoptions;
168174
/* type of data stored in index, or InvalidOid if variable */
169175
Oid amkeytype;
170176

@@ -604,7 +610,7 @@ amcanreturn (Relation indexRelation, int attno);
604610
linkend="indexes-index-only-scans"><firstterm>index-only scans</firstterm></link> on
605611
the given column, by returning the indexed column values for an index entry
606612
in the form of an <structname>IndexTuple</structname>. The attribute number
607-
is 1-based, i.e. the first column's attno is 1. Returns true if supported,
613+
is 1-based, i.e., the first column's attno is 1. Returns true if supported,
608614
else false. If the access method does not support index-only scans at all,
609615
the <structfield>amcanreturn</structfield> field in its <structname>IndexAmRoutine</structname>
610616
struct can be set to NULL.
@@ -889,7 +895,7 @@ amgettuple (IndexScanDesc scan,
889895
will pass the caller's snapshot test. On success, <function>amgettuple</function>
890896
must also set <literal>scan-&gt;xs_recheck</literal> to true or false.
891897
False means it is certain that the index entry matches the scan keys.
892-
true means this is not certain, and the conditions represented by the
898+
True means this is not certain, and the conditions represented by the
893899
scan keys must be rechecked against the heap tuple after fetching it.
894900
This provision supports <quote>lossy</quote> index operators.
895901
Note that rechecking will extend only to the scan conditions; a partial

postgresql/doc/src/sgml/install-windows.sgml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ ____________________________________________________________________________-->
7777
<productname>Cygwin</productname> is not recommended for running a
7878
production server, and it should only be used for running on
7979
older versions of <productname>Windows</productname> where
80-
the native build does not work, such as
81-
<productname>Windows 98</productname>. The official
80+
the native build does not work. The official
8281
binaries are built using <productname>Visual Studio</productname>.
8382
</para>
8483
____________________________________________________________________________-->
@@ -184,14 +183,19 @@ ____________________________________________________________________________-->
184183
<application>Visual Studio Command Prompt</application>.
185184
If you wish to build a 64-bit version, you must use the 64-bit version of
186185
the command, and vice versa.
187-
In the <productname>Microsoft Windows SDK</productname>, start the
188-
<application>CMD shell</application> listed under the SDK on the Start Menu.
189-
In recent SDK versions you can change the targeted CPU architecture, build
190-
type, and target OS by using the <command>setenv</command> command, e.g.
191-
<command>setenv /x86 /release /xp</command> to target Windows XP or later
192-
with a 32-bit release build. See <command>/?</command> for other options to
193-
<command>setenv</command>. All commands should be run from the
194-
<filename>src\tools\msvc</filename> directory.
186+
Starting with <productname>Visual Studio 2017</productname> this can be
187+
done from the command line using <command>VsDevCmd.bat</command>, see
188+
<command>-help</command> for the available options and their default values.
189+
<command>vsvars32.bat</command> is available in
190+
<productname>Visual Studio 2015</productname> and earlier versions for the
191+
same purpose.
192+
From the <application>Visual Studio Command Prompt</application>, you can
193+
change the targeted CPU architecture, build type, and target OS by using the
194+
<command>vcvarsall.bat</command> command, e.g.,
195+
<command>vcvarsall.bat x64 10.0.10240.0</command> to target Windows 10
196+
with a 64-bit release build. See <command>-help</command> for the other
197+
options of <command>vcvarsall.bat</command>. All commands should be run from
198+
the <filename>src\tools\msvc</filename> directory.
195199
</para>
196200
____________________________________________________________________________-->
197201
<para>
@@ -378,7 +382,7 @@ ____________________________________________________________________________-->
378382
installations <filename>C:\Program Files\GnuWin32</filename>.
379383
Consider installing into <filename>C:\GnuWin32</filename> or use the
380384
NTFS short name path to GnuWin32 in your PATH environment setting
381-
(e.g. <filename>C:\PROGRA~1\GnuWin32</filename>).
385+
(e.g., <filename>C:\PROGRA~1\GnuWin32</filename>).
382386
</para>
383387
</note>
384388

@@ -415,7 +419,7 @@ ____________________________________________________________________________-->
415419
<listitem><para>
416420
Required for GSSAPI authentication support. MIT Kerberos can be
417421
downloaded from
418-
<ulink url="http://web.mit.edu/Kerberos/dist/index.html"></ulink>.
422+
<ulink url="https://web.mit.edu/Kerberos/dist/index.html"></ulink>.
419423
</para></listitem>
420424
</varlistentry>
421425

@@ -424,7 +428,7 @@ ____________________________________________________________________________-->
424428
<productname>libxslt</productname></term>
425429
<listitem><para>
426430
Required for XML support. Binaries can be downloaded from
427-
<ulink url="http://zlatkovic.com/pub/libxml"></ulink> or source from
431+
<ulink url="https://zlatkovic.com/pub/libxml"></ulink> or source from
428432
<ulink url="http://xmlsoft.org"></ulink>. Note that libxml2 requires iconv,
429433
which is available from the same download location.
430434
</para></listitem>
@@ -461,7 +465,7 @@ ____________________________________________________________________________-->
461465
<listitem><para>
462466
Required for compression support in <application>pg_dump</application>
463467
and <application>pg_restore</application>. Binaries can be downloaded
464-
from <ulink url="http://www.zlib.net"></ulink>.
468+
from <ulink url="https://www.zlib.net"></ulink>.
465469
</para></listitem>
466470
</varlistentry>
467471

postgresql/doc/src/sgml/intro.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ ____________________________________________________________________________-->
149149
<para>
150150
<productname>PostgreSQL</productname> is an object-relational
151151
database management system (<acronym>ORDBMS</acronym>) based on
152-
<ulink url="http://db.cs.berkeley.edu/postgres.html">
152+
<ulink url="https://dsf.berkeley.edu/postgres.html">
153153
<productname>POSTGRES, Version 4.2</productname></ulink>,
154154
developed at the University of California at Berkeley Computer Science
155155
Department. POSTGRES pioneered many concepts that only became

0 commit comments

Comments
 (0)