Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a2f6590

Browse files
author
Vladimir Ershov
committed
Merge branch 'PGPROEE10' into PGPROEE10_scheduler
2 parents 26e56a3 + 1ccfbfd commit a2f6590

File tree

32 files changed

+441
-114
lines changed

32 files changed

+441
-114
lines changed

contrib/pageinspect/hashfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@ hash_page_items(PG_FUNCTION_ARGS)
313313

314314
fctx = SRF_FIRSTCALL_INIT();
315315

316-
page = verify_hash_page(raw_page, LH_BUCKET_PAGE | LH_OVERFLOW_PAGE);
317-
318316
mctx = MemoryContextSwitchTo(fctx->multi_call_memory_ctx);
319317

318+
page = verify_hash_page(raw_page, LH_BUCKET_PAGE | LH_OVERFLOW_PAGE);
319+
320320
uargs = palloc(sizeof(struct user_args));
321321

322322
uargs->page = page;

doc/src/sgml/aqo.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ DELETE FROM aqo_data;
262262
</programlisting>
263263
<para>
264264
Alternatively, you can specify a particular query type to reset by
265-
providing its hash value in the <literal>fspaсe_hash</literal> option. For example:
265+
providing its hash value in the <literal>fspace_hash</literal> option. For example:
266266
</para>
267267
<programlisting>
268268
DELETE FROM aqo_data WHERE fspace_hash = (SELECT fspace_hash FROM aqo_queries

doc/src/sgml/ddl.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3077,14 +3077,14 @@ CREATE TABLE measurement (
30773077

30783078
<programlisting>
30793079
CREATE TABLE measurement_y2006m02 PARTITION OF measurement
3080-
FOR VALUES FROM ('2006-02-01') TO ('2006-03-01')
3080+
FOR VALUES FROM ('2006-02-01') TO ('2006-03-01');
30813081

30823082
CREATE TABLE measurement_y2006m03 PARTITION OF measurement
3083-
FOR VALUES FROM ('2006-03-01') TO ('2006-04-01')
3083+
FOR VALUES FROM ('2006-03-01') TO ('2006-04-01');
30843084

30853085
...
30863086
CREATE TABLE measurement_y2007m11 PARTITION OF measurement
3087-
FOR VALUES FROM ('2007-11-01') TO ('2007-12-01')
3087+
FOR VALUES FROM ('2007-11-01') TO ('2007-12-01');
30883088

30893089
CREATE TABLE measurement_y2007m12 PARTITION OF measurement
30903090
FOR VALUES FROM ('2007-12-01') TO ('2008-01-01')

doc/src/sgml/func.sgml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20405,7 +20405,6 @@ SELECT (pg_stat_file('filename')).modification;
2040520405
</para>
2040620406

2040720407
</sect2>
20408-
2040920408
<sect2 id="functions-compression-control">
2041020409
<title>Compression Control Functions</title>
2041120410

@@ -20462,87 +20461,89 @@ SELECT (pg_stat_file('filename')).modification;
2046220461
<literal><function>cfs_start_gc(n_workers integer)</function></literal>
2046320462
</entry>
2046420463
<entry><type>integer</type></entry>
20465-
<entry>Manually initiate GC using specified number of workers (only if background GC is disabled).
20464+
<entry>Starts garbage collection using the specified number of workers.
20465+
You can only run this function to start the garbage collection manually
20466+
if background garbage collection is disabled.
2046620467
</entry>
2046720468
</row>
2046820469
<row>
2046920470
<entry>
2047020471
<literal><function>cfs_enable_gc(enabled boolean)</function></literal>
2047120472
</entry>
2047220473
<entry><type>boolean</type></entry>
20473-
<entry>Enable or disable background GC (also can be done using <xref linkend="guc-cfs-gc"> configuation variable).
20474+
<entry>Enables/disables background garbage collection. Alternatively, you can use the <xref linkend="guc-cfs-gc"> configuration variable.
2047420475
</entry>
2047520476
</row>
2047620477
<row>
2047720478
<entry>
2047820479
<literal><function>cfs_gc_relation(rel regclass)</function></literal>
2047920480
</entry>
2048020481
<entry><type>integer</type></entry>
20481-
<entry>Perform garbage collection of particular table. Returns number of processed segments.
20482+
<entry>Performs garbage collection for a particular table. This function returns the number of processed segments.
2048220483
</entry>
2048320484
</row>
2048420485
<row>
2048520486
<entry>
2048620487
<literal><function>cfs_version()</function></literal>
2048720488
</entry>
2048820489
<entry><type>text</type></entry>
20489-
<entry>CFS version and used compression algorithm.
20490+
<entry>Displays the CFS version and the specific compression algorithm used.
2049020491
</entry>
2049120492
</row>
2049220493
<row>
2049320494
<entry>
2049420495
<literal><function>cfs_estimate(rel regclass)</function></literal>
2049520496
</entry>
2049620497
<entry><type>float8</type></entry>
20497-
<entry>Estimate effect of table compression. Returns average compress ratio for first ten blocks of the relation.
20498+
<entry>Estimates the effect of table compression. Returns the average compression ratio for the first ten blocks of the relation.
2049820499
</entry>
2049920500
</row>
2050020501
<row>
2050120502
<entry>
2050220503
<literal><function>cfs_compression_ratio(rel regclass)</function></literal>
2050320504
</entry>
2050420505
<entry><type>float8</type></entry>
20505-
<entry>Returns real compression ration for all segments of the compressed relation.
20506+
<entry>Returns the actual compression ratio for all segments of the compressed relation.
2050620507
</entry>
2050720508
</row>
2050820509
<row>
2050920510
<entry>
2051020511
<literal><function>cfs_fragmentation(rel regclass)</function></literal>
2051120512
</entry>
2051220513
<entry><type>float8</type></entry>
20513-
<entry>Returns average fragmentation of the relation files.
20514+
<entry>Returns the average fragmentation ratio of the relation files.
2051420515
</entry>
2051520516
</row>
2051620517
<row>
2051720518
<entry>
2051820519
<literal><function>cfs_gc_activity_processed_bytes()</function></literal>
2051920520
</entry>
2052020521
<entry><type>int64</type></entry>
20521-
<entry>Returns total size of pages transferred by CFS during garbage collection.
20522+
<entry>Returns the total size of pages processed by CFS during garbage collection.
2052220523
</entry>
2052320524
</row>
2052420525
<row>
2052520526
<entry>
2052620527
<literal><function>cfs_gc_activity_processed_pages()</function></literal>
2052720528
</entry>
2052820529
<entry><type>int64</type></entry>
20529-
<entry>Returns number of pages transferred by CFS during garbage collection.
20530+
<entry>Returns the number of pages processed by CFS during garbage collection.
2053020531
</entry>
2053120532
</row>
2053220533
<row>
2053320534
<entry>
2053420535
<literal><function>cfs_gc_activity_processed_files()</function></literal>
2053520536
</entry>
2053620537
<entry><type>int64</type></entry>
20537-
<entry>Returns number of files compacted by CFS during garbage collection.
20538+
<entry>Returns the number of files compacted by CFS during garbage collection.
2053820539
</entry>
2053920540
</row>
2054020541
<row>
2054120542
<entry>
2054220543
<literal><function>cfs_gc_activity_scanned_files()</function></literal>
2054320544
</entry>
2054420545
<entry><type>int64</type></entry>
20545-
<entry>Returns number of files scanned by CFS during garbage collection.
20546+
<entry>Returns the number of files scanned by CFS during garbage collection.
2054620547
</entry>
2054720548
</row>
2054820549
</tbody>

doc/src/sgml/in-memory.sgml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,7 @@ Execution time: 0.353 ms
280280
<literal>RESTART IDENTITY</literal>,
281281
<literal>CONTINUE IDENTITY</literal>, <literal>CASCADE</literal>,
282282
and <literal>RESTRICT</literal> options of the <command>TRUNCATE</command> command
283-
are not supported by in-memory tables. To truncate an in-memory
284-
table, you must specify its name directly. For example:
285-
<programlisting>
286-
# TRUNCATE blog_views;
287-
TRUNCATE TABLE
288-
</programlisting>
283+
are not supported by in-memory tables.
289284
</para>
290285

291286
</sect3>

doc/src/sgml/intro.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@
255255
<simpara>Lazy placement of temporary tables on disk</simpara>
256256
</listitem>
257257
<listitem>
258-
<simpara>Consistent read on slaves (wait for WAL apply, see <xref linkend="sql-waitlsn">)</simpara>
258+
<simpara>Consistent read on standby servers (wait for WAL apply, see <xref linkend="sql-waitlsn">)</simpara>
259259
</listitem>
260260
<listitem>
261261
<simpara>Utility <link linkend="app-pgrepack"><application>pg_repack</application></link> has been added</simpara>

doc/src/sgml/libpq.sgml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7612,11 +7612,10 @@ ldap://ldap.acme.com/cn=dbserver,cn=hosts?pgconnectinfo?base?(objectclass=*)
76127612
To allow the client to verify the identity of the server, place a root
76137613
certificate on the client and a leaf certificate signed by the root
76147614
certificate on the server. To allow the server to verify the identity
7615-
of the client, place a root certificate on the server and a leaf and
7616-
optional intermediate certificates signed by the root certificate on
7617-
the client. Intermediate certificates (usually stored with the leaf
7618-
certificate) can also be used to link the leaf certificate to the
7619-
root certificate.
7615+
of the client, place a root certificate on the server and a leaf
7616+
certificate signed by the root certificate on the client. One or more
7617+
intermediate certificates (usually stored with the leaf certificate)
7618+
can also be used to link the leaf certificate to the root certificate.
76207619
</para>
76217620

76227621
<para>

doc/src/sgml/ref/create_trigger.sgml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -500,17 +500,17 @@ UPDATE OF <replaceable>column_name1</replaceable> [, <replaceable>column_name2</
500500
</para>
501501

502502
<para>
503-
Modifying a partitioned table or a table with inheritance children fires
504-
statement-level triggers directly attached to that table, but not
505-
statement-level triggers for its partitions or child tables. In contrast,
506-
row-level triggers are fired for all affected partitions or child tables.
507-
If a statement-level trigger has been defined with transition relations
508-
named by a <literal>REFERENCING</literal> clause, then before and after
509-
images of rows are visible from all affected partitions or child tables.
510-
In the case of inheritance children, the row images include only columns
511-
that are present in the table that the trigger is attached to. Currently,
512-
row-level triggers with transition relations cannot be defined on
513-
partitions or inheritance child tables.
503+
Modifying a partitioned table or a table with inheritance children fires
504+
statement-level triggers directly attached to that table, but not
505+
statement-level triggers for its partitions or child tables. In contrast,
506+
row-level triggers are fired for all affected partitions or child tables.
507+
If a statement-level trigger has been defined with transition relations
508+
named by a <literal>REFERENCING</literal> clause, then before and after
509+
images of rows are visible from all affected partitions or child tables.
510+
In the case of inheritance children, the row images include only columns
511+
that are present in the table that the trigger is attached to. Currently,
512+
row-level triggers with transition relations cannot be defined on
513+
partitions or inheritance child tables.
514514
</para>
515515

516516
<para>

doc/src/sgml/ref/pg_ctl-ref.sgml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,12 @@ doc/src/sgml/ref/pg_ctl-ref.sgml
405405
</para>
406406

407407
<para>
408-
When waiting for startup, <command>pg_ctl</command> repeatedly
409-
attempts to connect to the server.
410-
When waiting for shutdown, <command>pg_ctl</command> waits for
411-
the server to remove its <acronym>PID</acronym> file.
408+
When waiting, <command>pg_ctl</command> repeatedly checks the
409+
server's <acronym>PID</acronym> file, sleeping for a short amount
410+
of time between checks. Startup is considered complete when
411+
the <acronym>PID</acronym> file indicates that the server is ready to
412+
accept connections. Shutdown is considered complete when the server
413+
removes the <acronym>PID</acronym> file.
412414
<command>pg_ctl</command> returns an exit code based on the
413415
success of the startup or shutdown.
414416
</para>

doc/src/sgml/ref/psql-ref.sgml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ EOF
281281
<listitem>
282282
<para>
283283
List all available databases, then exit. Other non-connection
284-
options are ignored. This is similar to the meta-command
284+
options are ignored. If an explicit database name is not
285+
found the <literal>postgres</literal> database, not the user's,
286+
will be targeted for connection. This is similar to the meta-command
285287
<command>\list</command>.
286288
</para>
287289
</listitem>

doc/src/sgml/release-proee-9.6.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@
829829
<para>Lazy placement of temporary tables on disk</para>
830830
</listitem>
831831
<listitem>
832-
<para>Consistent read on slaves (wait for WAL apply, see <xref linkend="sql-waitlsn">)</para>
832+
<para>Consistent read on standby servers (wait for WAL apply, see <xref linkend="sql-waitlsn">)</para>
833833
</listitem>
834834
<listitem>
835835
<para>Utility <application>pg_repack</application> has been added (See <xref linkend="app-pgrepack">)</para>

doc/src/sgml/runtime.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2674,8 +2674,8 @@ pg_dump <replaceable>dbname</> -h <replaceable>hostname</> > db.sql
26742674
</sect2>
26752675

26762676
<sect2>
2677-
<title>Using <acronym>RDMA</acronym> for Master-Slave Replication</title>
2678-
<para>To enable master-slave replication over <acronym>RDMA</acronym> connections via <literal>rsocket</literal>, you need to configure master and slave nodes. For example, to allow client connections to the server 172.17.3.21 from 172.17.3.0/24 addresses on behalf of the <literal>postgres</> user, follow the steps below:</para>
2677+
<title>Using <acronym>RDMA</acronym> for Master-Standby Replication</title>
2678+
<para>To enable master-standby replication over <acronym>RDMA</acronym> connections via <literal>rsocket</literal>, you need to configure master and standby nodes. For example, to allow client connections to the server 172.17.3.21 from 172.17.3.0/24 addresses on behalf of the <literal>postgres</> user, follow the steps below:</para>
26792679

26802680
<para><emphasis role="strong">To set up the master node for replication over <acronym>RDMA</acronym> connections via <literal>rsocket</literal>:</emphasis>
26812681
</para>
@@ -2715,7 +2715,7 @@ LOG: disconnection: session time: 0:00:00.622 user=postgres database= host=172.
27152715
</para>
27162716
</tip>
27172717

2718-
<para><emphasis role="strong">To set up the slave node:</emphasis>
2718+
<para><emphasis role="strong">To set up the standby node:</emphasis>
27192719
</para>
27202720
<orderedlist>
27212721
<listitem>
@@ -2730,7 +2730,7 @@ export WITH_RSOCKET=true
27302730
<programlisting>
27312731
pg_basebackup -D <replaceable>datadir</> -x -R -h 172.17.3.21 -U postgres
27322732
</programlisting>
2733-
All the data appears on the slave node under the specified <replaceable>datadir</> directory.
2733+
All the data appears on the standby node under the specified <replaceable>datadir</> directory.
27342734
</para>
27352735
</listitem>
27362736
<listitem>
@@ -2750,7 +2750,7 @@ listen_rdma_addresses = ''
27502750
</listitem>
27512751
</orderedlist>
27522752

2753-
<para>Once the setup is complete, start the slave node. The streaming replication is now performed over the <acronym>RDMA</acronym> connections using <literal>rsocket</literal> API.</para>
2753+
<para>Once the setup is complete, start the standby node. The streaming replication is now performed over the <acronym>RDMA</acronym> connections using <literal>rsocket</literal> API.</para>
27542754

27552755
</sect2>
27562756

0 commit comments

Comments
 (0)