mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 15:16:29 +00:00
Compare commits
12 Commits
update-doc
...
dev/FS-704
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89f1936004 | ||
|
|
d3b1ff45b0 | ||
|
|
450786ec29 | ||
|
|
70b34308cc | ||
|
|
19c92a7092 | ||
|
|
520ff25ef3 | ||
|
|
8e81c04b4a | ||
|
|
aad988c292 | ||
|
|
43b8a5f65f | ||
|
|
26cfb56170 | ||
|
|
f0cc225de0 | ||
|
|
4c95d8d75e |
77
.github/workflows/sonarqube-scan.yml
vendored
Normal file
77
.github/workflows/sonarqube-scan.yml
vendored
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
###
|
||||||
|
# Foundation-security SonarQube workflow
|
||||||
|
# version: 2.1
|
||||||
|
###
|
||||||
|
name: Foundation-Security/SonarQube Scan
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "**"
|
||||||
|
branches:
|
||||||
|
- "*main*"
|
||||||
|
- "*master*"
|
||||||
|
- "*STABLE*"
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened]
|
||||||
|
branches:
|
||||||
|
- "**"
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
ref:
|
||||||
|
description: "Branch to scan"
|
||||||
|
required: true
|
||||||
|
default: "main"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
SonarQube-Scan:
|
||||||
|
name: SonarQube Scan Job
|
||||||
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: read
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout source repository for dispatch runs
|
||||||
|
id: checkout-source-dispatch
|
||||||
|
if: github.event_name == 'workflow_dispatch'
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: ${{ github.repository }}
|
||||||
|
ref: ${{ inputs.ref }}
|
||||||
|
path: source
|
||||||
|
token: ${{ secrets.GH_SLONIK }}
|
||||||
|
|
||||||
|
- name: Checkout source repository for non-dispatch runs
|
||||||
|
id: checkout-source
|
||||||
|
if: github.event_name != 'workflow_dispatch'
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: ${{ github.repository }}
|
||||||
|
ref: ${{ github.ref }}
|
||||||
|
path: source
|
||||||
|
token: ${{ secrets.GH_SLONIK }}
|
||||||
|
|
||||||
|
- name: Checkout foundation-security repository
|
||||||
|
id: checkout-foundation-security
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: EnterpriseDB/foundation-security
|
||||||
|
ref: v2
|
||||||
|
path: foundation-security
|
||||||
|
token: ${{ secrets.GH_SLONIK }}
|
||||||
|
|
||||||
|
- name: SonarQube Scan
|
||||||
|
id: call-sq-composite
|
||||||
|
uses: ./foundation-security/actions/sonarqube
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GH_SLONIK }}
|
||||||
|
github-ref: ${{ github.ref_name }}
|
||||||
|
sonarqube-url: ${{ vars.SQ_URL }}
|
||||||
|
sonarqube-token: ${{ secrets.SONARQUBE_TOKEN }}
|
||||||
|
project-name: ${{ github.event.repository.name }}
|
||||||
|
pull-request-key: ${{ github.event.number }}
|
||||||
|
pull-request-branch: ${{ github.head_ref }}
|
||||||
|
pull-request-base-branch: ${{ github.base_ref }}
|
||||||
|
foundation-security-sonarqube-token: ${{ secrets.FOUNDATION_SECURITY_SONARQUBE_TOKEN }}
|
||||||
|
cloudsmith-token: ${{ secrets.CLOUDSMITH_READ_ALL }}
|
||||||
6
HISTORY
6
HISTORY
@@ -1,3 +1,9 @@
|
|||||||
|
5.4.1 2023-??-??
|
||||||
|
repmgrd: ensure witness node metadata is updated (Ian)
|
||||||
|
|
||||||
|
5.4.0 2023-03-16
|
||||||
|
Support cloning replicas using pg-backup-api
|
||||||
|
|
||||||
5.3.3 2022-10-17
|
5.3.3 2022-10-17
|
||||||
Support for PostgreSQL added
|
Support for PostgreSQL added
|
||||||
repmgrd: ensure event notification script is called for event
|
repmgrd: ensure event notification script is called for event
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ replication, and perform administrative tasks such as failover or switchover
|
|||||||
operations.
|
operations.
|
||||||
|
|
||||||
The most recent `repmgr` version (5.3.2) supports all PostgreSQL versions from
|
The most recent `repmgr` version (5.3.2) supports all PostgreSQL versions from
|
||||||
9.5 to 14. PostgreSQL 9.4 is also supported, with some restrictions.
|
9.5 to 15. PostgreSQL 9.4 is also supported, with some restrictions.
|
||||||
|
|
||||||
`repmgr` is distributed under the GNU GPL 3 and maintained by EnterpriseDB.
|
`repmgr` is distributed under the GNU GPL 3 and maintained by EnterpriseDB.
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,44 @@
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<!-- remember to update the release date in ../repmgr_version.h.in -->
|
<!-- remember to update the release date in ../repmgr_version.h.in -->
|
||||||
|
<sect1 id="release-5.4.1">
|
||||||
|
<title id="release-current">Release 5.4.1</title>
|
||||||
|
<para><emphasis>??? ?? ??????, 202?</emphasis></para>
|
||||||
|
<para>
|
||||||
|
&repmgr; 5.4.1 is a minor release providing ...
|
||||||
|
</para>
|
||||||
|
<sect2>
|
||||||
|
<title>Bug fixes</title>
|
||||||
|
<para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
&repmgrd;: ensure witness node metadata is updated if the primary
|
||||||
|
node changed while the witness &repmgrd; was not running.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</para>
|
||||||
|
</sect2>
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
<sect1 id="release-5.4.0">
|
||||||
|
<title>Release 5.4.0</title>
|
||||||
|
<para><emphasis>Thu 15 March, 2023</emphasis></para>
|
||||||
|
<para>
|
||||||
|
&repmgr; 5.4.0 is a major release.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
This release provides support for cloning standbys using backups taken with <ulink url="http://www.pgbarman.org">barman</ulink>
|
||||||
|
with the use of <ulink url="https://github.com/EnterpriseDB/pg-backup-api">pg-backup-api</ulink>.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Minor fixes to the documentation.
|
||||||
|
</para>
|
||||||
|
</sect1>
|
||||||
|
|
||||||
<sect1 id="release-5.3.3">
|
<sect1 id="release-5.3.3">
|
||||||
<title id="release-current">Release 5.3.3</title>
|
<title>Release 5.3.3</title>
|
||||||
<para><emphasis>Mon 17 October, 2022</emphasis></para>
|
<para><emphasis>Mon 17 October, 2022</emphasis></para>
|
||||||
<para>
|
<para>
|
||||||
&repmgr; 5.3.3 is a minor release providing support for
|
&repmgr; 5.3.3 is a minor release providing support for
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
<note>
|
<note>
|
||||||
<simpara>
|
<simpara>
|
||||||
This section documents a subset of optional configuration settings; for a full
|
This section documents a subset of optional configuration settings; for a full
|
||||||
for a full and annotated view of all configuration options see the
|
and annotated view of all configuration options see the
|
||||||
see the <ulink url="https://raw.githubusercontent.com/EnterpriseDB/repmgr/master/repmgr.conf.sample">sample repmgr.conf file</ulink>
|
<ulink url="https://raw.githubusercontent.com/EnterpriseDB/repmgr/master/repmgr.conf.sample">sample repmgr.conf file</ulink>
|
||||||
</simpara>
|
</simpara>
|
||||||
</note>
|
</note>
|
||||||
|
|
||||||
|
|||||||
@@ -2394,6 +2394,17 @@ monitor_streaming_witness(void)
|
|||||||
terminate(ERR_BAD_CONFIG);
|
terminate(ERR_BAD_CONFIG);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* It's possible that the primary changed while the witness repmgrd was not
|
||||||
|
* running. This does not affect the functionality of the witness repmgrd, but
|
||||||
|
* does mean outdated node metadata will be displayed, so update that.
|
||||||
|
*/
|
||||||
|
if (local_node_info.upstream_node_id != primary_node_id)
|
||||||
|
{
|
||||||
|
update_node_record_set_upstream(primary_conn, local_node_info.node_id, primary_node_id);
|
||||||
|
local_node_info.upstream_node_id = primary_node_id;
|
||||||
|
}
|
||||||
|
|
||||||
initPQExpBuffer(&event_details);
|
initPQExpBuffer(&event_details);
|
||||||
|
|
||||||
appendPQExpBuffer(&event_details,
|
appendPQExpBuffer(&event_details,
|
||||||
|
|||||||
Reference in New Issue
Block a user