Skip to content

Commit ac4fba9

Browse files
authored
Merge pull request #1132 from EnterpriseDB/release/2021-03-25
Production Release 2021-03-25 Former-commit-id: 76ceba2
2 parents 2f16df8 + 1bea5d9 commit ac4fba9

28 files changed

+173
-39
lines changed

.github/workflows/deploy-develop.yml

+7
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,10 @@ jobs:
5757
env:
5858
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
5959
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DEVELOP_SITE_ID }}
60+
61+
- uses: act10ns/slack@v1
62+
with:
63+
status: ${{ job.status }}
64+
if: failure()
65+
env:
66+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/deploy-main.yml

+7
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,10 @@ jobs:
5858
env:
5959
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
6060
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_MAIN_SITE_ID }}
61+
62+
- uses: act10ns/slack@v1
63+
with:
64+
status: ${{ job.status }}
65+
if: always()
66+
env:
67+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/update-pdfs-on-develop.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ on:
66
paths:
77
- product_docs/docs/**.mdx
88
- scripts/pdf/generate_pdf.py
9+
- .github/workflows/update-pdfs-on-develop.yml
910
jobs:
10-
build-deploy:
11+
build-pdfs:
1112
runs-on: ubuntu-20.04
1213
steps:
1314
- uses: actions/checkout@v2
@@ -43,3 +44,10 @@ jobs:
4344
git add *.pdf
4445
git commit -m "New PDFs generated by Github Actions"
4546
git push
47+
48+
- uses: act10ns/slack@v1
49+
with:
50+
status: ${{ job.status }}
51+
if: failure()
52+
env:
53+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

product_docs/docs/eprs/6.2/05_smr_operation/01_prerequisites/06_verifying_host_accessibility.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ $ hostname -i
122122

123123
## Postgres Server Authentication
124124

125+
#postgres-server-authentication
126+
125127
A Postgres database server uses the host-based authentication file, `pg_hba.conf`, to control access to the databases in the database server. You need to modify the `pg_hba.conf` file in the following locations:
126128

127129
- On each Postgres database server that contains a Postgres publication database

product_docs/docs/eprs/6.2/05_smr_operation/02_creating_publication/04_control_schema_objects_created_for_publication.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ RREP_SYNCID_ARRAY COLLECTION
292292
```
293293

294294
!!! Note
295-
The RREP_SYNCID_ARRAY collection type is found only in an Oracle publication database.
295+
The `RREP_SYNCID_ARRAY` collection type is found only in an Oracle publication database.
296296

297297
<div id="sql_control_schema_objects" class="registered_link"></div>
298298

product_docs/docs/eprs/6.2/05_smr_operation/06_performing_switchover.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ Delete or disable these triggers on node 1.
6363

6464
Delete this schema from the subscription database on node 2 after the backup has been made.
6565

66-
**Step 8:** Restore the backups of `schemas _edb_replicator_pub`, \_edb_replicator_sub`, and`\_edb_scheduler`created in Step 5 to the subscription database on node 2. Also restore the backup of the replication triggers and trigger functions created in Step 6 to the subscription database on node 2.
66+
**Step 8:** Restore the backups of `schemas _edb_replicator_pub`, _edb_replicator_sub`, and `_edb_scheduler` created in Step 5 to the subscription database on node 2. Also restore the backup of the replication triggers and trigger functions created in Step 6 to the subscription database on node 2.
6767

68-
**Step 9:** Restore the backup of schema`\_edb_replicator_sub`created in Step 7 to the publication database on node 1.
68+
**Step 9:** Restore the backup of schema `_edb_replicator_sub` created in Step 7 to the publication database on node 1.
6969

7070
**Step 10:** Update the control schema objects so that the publication database definition references the new publication database (that is, the former subscription database) on node 2 and the subscription database definition references the new subscription database (that is, the former publication database) on node 1.
7171

@@ -131,13 +131,13 @@ host=192.168.2.20
131131
132132
```
133133

134-
**Step 13:** Update the`pg_hba.conf` files of the database servers to allow access to the subscription database now on node 1 and the publication database now on node 2 in accordance with Section [Postgres Server Authentication](../06_verifying_host_accessibility/03_postgres_server_auth/#postgres_server_auth).
134+
**Step 13:** Update the`pg_hba.conf` files of the database servers to allow access to the subscription database now on node 1 and the publication database now on node 2 in accordance with Section [Postgres Server Authentication](01_prerequisites/06_verifying_host_accessibility/#postgres-server-authentication).
135135

136136
**Step 14:** When using the log-based method, create a replication slot on the database server that now contains the publication database.
137137

138138
Use the following query to obtain the slot name from the database server that was previously running the publication database, but is now the subscription database server:
139139

140-
```text
140+
```
141141
SELECT slot_name FROM pg_replication_slots WHERE plugin = 'test_decoding';
142142
slot_name
143143
-------------
@@ -159,7 +159,7 @@ You may choose to keep the replication slot on the database server that now cont
159159

160160
Alternatively, you can delete the replication slot from the database server that now contains the subscription database. The replication slot is deleted with the following command:
161161

162-
```text
162+
```
163163
SELECT pg_drop_replication_slot('xdb_47919_5');
164164
```
165165

product_docs/docs/eprs/6.2/05_smr_operation/08_optimizing_performance/02_optimize_sync_replication/01_using_sql_statements.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ The `bupBatchThresholdCount` option is used in combination with the `bupBatchThr
102102

103103
> The default value for n is 10.
104104
105-
Each time the same prepared SQL statement is consecutively executed, an internal batch counter is incremented. If this batch count falls below bupBatchThresholdCount for the number of executions of a given prepared statement, then a second internal repeat counter is incremented by one. If the repeat counter eventually reaches bupBatchThresholdRepeatLimit, the update mode is switched from BUP to BUS.
105+
Each time the same prepared SQL statement is consecutively executed, an internal `batch` counter is incremented. If this batch count falls below bupBatchThresholdCount for the number of executions of a given prepared statement, then a second internal `repeat` counter is incremented by one. If the repeat counter eventually reaches bupBatchThresholdRepeatLimit, the update mode is switched from `BUP` to `BUS`.
106106

107107
Thus, if there are frequent, consecutive changes of prepared SQL statements (as measured against `bupBatchThresholdRepeatLimit`), each of which is executed a small number of times (as measured against `bupBatchThresholdCount`), then the mode of execution changes back to individual SQL statements instead of prepared statements.
108108

@@ -111,15 +111,15 @@ Thus, if there are frequent, consecutive changes of prepared SQL statements (as
111111

112112
The following example illustrates the processing of up dates when bupBatchThresholdCount is set to 3 and bupBatchThresholdRepeatLimit is set to 4. A change to the “query domain” referred to in this example means a different statement type (INSERT, UPDATE, or DELETE) or a different target table are encountered in the next update, thus requiring the use of a different prepared SQL statement.
113113

114-
```text
114+
```
115115
1. INSERT INTO emp
116116
2. INSERT INTO emp
117117
3. INSERT INTO dept
118118
```
119119

120120
At this point the query domain is changed after the first two updates (change from table `emp` to `dept`) and the number of executions of the prior prepared statement (2) is less than `bupBatchThresholdCount`, so the repeat counter is set to 1.
121121

122-
```text
122+
```
123123
4. INSERT INTO dept
124124
5. INSERT INTO dept
125125
6. INSERT INTO dept

product_docs/docs/eprs/6.2/05_smr_operation/08_optimizing_performance/02_optimize_sync_replication/03_other_sync_configuration.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "Other Synchronization Configuration Options"
44

55
The following are other configuration options affecting synchronization replication.
66

7-
**syncBatchSize**
7+
`syncBatchSize`
88

99
> The `syncBatchSize` option controls the number of statements in a synchronization replication JDBC batch.
1010

product_docs/docs/eprs/6.2/06_mmr_operation/01_pre_steps.mdx

+5-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ There are also two possible options available with respect to how the publicatio
8282
- Allow the publication server to create the publication table definitions in the primary node by copying the definitions from the primary definition node at the time you add the publication database definition for the primary node.
8383
- Define the publication tables in the primary node beforehand by running SQL `DDL` statements in the `PSQL` command line utility program or by using Postgres Enterprise Manager Client to create the tables.
8484

85-
If you create the table definitions manually as described in the second bullet point, be sure the publication tables are defined identically to the tables in the primary definition node including schema names, table names, number of columns, column names, column data types, column lengths, primary key definitions, unique constraints, foreign key constraints, etc.
85+
If you create the table definitions `manually` as described in the second bullet point, be sure the publication tables are defined identically to the tables in the primary definition node including schema names, table names, number of columns, column names, column data types, column lengths, primary key definitions, unique constraints, foreign key constraints, etc.
8686

8787
The examples used throughout the rest of this user’s guide are based on the following:
8888

@@ -112,7 +112,9 @@ If more than one computer is used to host the components of the replication syst
112112
- For a discussion of firewalls and access to ports see [Firewalls and Access to Ports](../05_smr_operation/01_prerequisites/06_verifying_host_accessibility/#firewalls_and_access_to_ports).
113113
- For a discussion of network IP addresses see [Network IP Addresses](../05_smr_operation/01_prerequisites/06_verifying_host_accessibility/#network_ip).
114114

115-
A Postgres database server uses the host-based authentication file, `pg_hba.conf`, to control access to the databases in the database server. You need to modify the `pg_hba.conf` file on each Postgres database server that contains a primary node.
115+
A Postgres database server uses the host-based authentication file, `pg_hba.conf`, to control access to the databases in the database server.
116+
117+
You need to modify the `pg_hba.conf` file on each Postgres database server that contains a primary node.
116118

117119
In a default Postgres installation, this file is located in the directory `POSTGRES_INSTALL_HOME/data`.
118120

@@ -193,4 +195,4 @@ See sections [Synchronization Replication with the Log-Based Method](../02_overv
193195

194196
Reload the configuration file after making the modifications.
195197

196-
Choose Reload Configuration (Expert Configuration, then Reload Configuration on Advanced Server) from the Postgres application menu. This will put the modified `pg_hba.conf` file into effect.
198+
Choose `Reload Configuration` (Expert Configuration, then Reload Configuration on Advanced Server) from the Postgres application menu. This will put the modified `pg_hba.conf` file into effect.

product_docs/docs/eprs/6.2/06_mmr_operation/02_creating_publication_mmr.mdx

+23-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Registering a publication server is done in a manner identical to single-master
1919

2020
![Replication tree after registering a publication server](../images/image68.png)
2121

22+
**Figure 6-1: Replication tree after registering a publication server**
23+
2224
After you have successfully registered a publication server, the replication tree of the xDB Replication Console displays a Publication Server node under which are the SMR and MMR type nodes.
2325

2426
Continue to build the multi-master replication system under the MMR type node.
@@ -45,22 +47,28 @@ You must enter database connection information such as the database server netwo
4547
- `User`. The database user name for the primary definition node created in Step 1 of [Preparing the Primary definition node](01_pre_steps/#prepare_pdn).
4648
- `Password`. Password of the database user.
4749
- `Database`. Enter the database name of the primary definition node.
48-
- `URL Options (For SSL connectivity)`. Enter the URL options to establish SSL connectivity to the primary definition node. See <span class="title-ref">Using Secure Sockets Layer (SSL) Connections &lt;using_ssl_connections></span> for information on using SSL connections.
50+
- `URL Options (For SSL connectivity)`. Enter the URL options to establish SSL connectivity to the primary definition node. See [Using Secure Sockets Layer (SSL) Connections](../07_common_operations/11_using_ssl_connections/#using_ssl_connections) for information on using SSL connections.
4951
- `Changeset Logging (For Postgres)`. Select Table Triggers to use the trigger-based method of synchronization replication. Select WAL Stream to use the log-based method of synchronization replication. See [Synchronization Replication with the Trigger-Based Method](../02_overview/02_replication_concepts_and_definitions/09_sync_replication_trigger_based/#sync_replication_trigger_based) for information on the trigger-based method. See [Synchronization Replication with the Log-Based Method](../02_overview/02_replication_concepts_and_definitions/10_sync_replication_log_based/#sync_replication_log_based) for information on the log-based method.
5052
- `Node Priority Level`. An integer from 1 to 10, which is the priority level assigned to this primary node for conflict resolution based on node priority. The highest priority is 1 while the lowest is 10. See [Conflict Resolution Strategies](06_conflict_resolution/04_conflict_resolution_strategies/#conflict_resolution_strategies) for information on conflict resolution strategies. The default is 1 for the primary definition node.
5153

5254
![Publication Service - Add Database dialog box for the primary definition node](../images/image114.png)
5355

56+
**Figure 6-2: Publication Service - Add Database dialog box for the primary definition node**
57+
5458
**Step 4:** Click the `Test` button. If `Test Result: Success` appears, click the `OK` button, then click the `Save` button.
5559

5660
![Successful primary definition node test](../images/image115.png)
5761

62+
**Figure 6-3: Successful primary definition node test**
63+
5864
If an error message appears investigate the cause of the error, correct the problem, and repeat steps 1 through 4.
5965

6066
When the publication database definition is successfully saved, a Publication Database node is added to the replication tree under the MMR type node of the Publication Server node.
6167

6268
![Replication tree after adding the primary definition node](../images/image116.png)
6369

70+
**Figure 6-4: Replication tree after adding the primary definition node**
71+
6472
The label `PDN` appears at the end of the node in the replication tree and in addition, the `PDN` field is set to Yes in the Property window to indicate this is the primary definition node.
6573

6674
<div id="add_pub_mmr" class="registered_link"></div>
@@ -80,6 +88,8 @@ Subordinate to the primary definition node, you create a publication that contai
8088

8189
![Create Publication dialog box](../images/image117.png)
8290

91+
**Figure 6-5: Create Publication dialog box**
92+
8393
If you wish to use table filters during replications between primary nodes in this multi-master replication system, follow the directions in the next step to define the initial set of available table filters, otherwise go on to Step 4.
8494

8595
**Step 3 (Optional):** Table filters consist of a set of filter rules that control the selection criteria for rows replicated between primary nodes during a snapshot or a synchronization replication.
@@ -108,14 +118,20 @@ In the following example a filter rule is defined on the dept table so only rows
108118

109119
![Adding a filter rule for the dept table](../images/image118.png)
110120

121+
**Figure 6-6: Adding a filter rule for the dept table**
122+
111123
The following shows a rule added to the `emp` table by choosing `edb.emp` from the Table/View drop-down list and then entering the selection criteria for only rows with `deptno` containing 10 in the Filter dialog box.
112124

113125
![Adding a filter rule for the emp table](../images/image119.png)
114126

127+
**Figure 6-7: Adding a filter rule for the emp table**
128+
115129
Repeating this process, additional filter rules can be added for the `emp` table. The following shows the complete set of available filter rules defined for the `dept` and `emp` tables.
116130

117131
![Set of all available filter rules](../images/image120.png)
118132

133+
**Figure 6-8: Set of all available filter rules**
134+
119135
To remove a filter rule, click the primary mouse button on the filter rule you wish to remove so the entry is highlighted and then click the `Remove Filter` button.
120136

121137
You may also modify the filter name or filter clause of a filter rule listed in the Table Filters tab by double-clicking on the cell of the filter name or filter clause you wish to change. When the cursor appears in the cell, enter the text for the desired change.
@@ -133,6 +149,8 @@ If you wish to change the conflict resolution options from their default setting
133149

134150
![Conflict Resolution Options tab](../images/image121.png)
135151

152+
**Figure 6-9: Conflict Resolution Options tab**
153+
136154
If during synchronization replication, conflicting changes are pending against the same row from different primary nodes, the conflict resolution strategy determines which of the conflicting changes is accepted and replicated to all primary nodes. The conflicting changes that are not accepted are discarded.
137155

138156
If the selection from the Conflict Resolution Strategy column does not resolve the conflict, the selection from the Standby Conflict Resolution Strategy column is applied. If neither strategy resolves the conflict, the event is marked as Pending in the Conflict History tab. See [Viewing Conflict History](07_view_conflict_history/#view_conflict_history) for information on viewing conflict history.
@@ -155,6 +173,10 @@ See [Conflict Resolution Strategies](06_conflict_resolution/04_conflict_resoluti
155173

156174
![Publication created successfully](../images/image122.png)
157175

176+
**Figure 6-10: Publication created successfully**
177+
158178
Upon successful publication creation, a Publication node is added to the replication tree.
159179

160180
![Replication tree after adding a publication](../images/image123.png)
181+
182+
**Figure 6-11: Replication tree after adding a publication**

0 commit comments

Comments
 (0)