Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/spock_release_notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Spock Release Notes

## Spock 5.0.15

### Upgrade Notes
* There are no schema changes in 5.0.15.

### Bug Fixes
* When a standby was built while the primary was idle, the failover slot
worker kept each new slot copy temporary for as long as the primary stayed
idle. The copy started at the standby's own position, ahead of the
primary's slot, and an idle primary never moved its slot past that point.
A temporary copy is dropped at promotion, so after an unplanned failover
the promoted node had no slot and the subscriber failed with `replication
slot ... does not exist`. A new copy now starts at the primary slot's
`restart_lsn`, as PostgreSQL's own slot sync does, and is made permanent
on the same pass when the standby still has that WAL.

## Spock 5.0.14

### Upgrade Notes
Expand Down
4 changes: 2 additions & 2 deletions include/spock.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include "spock_fe.h"
#include "spock_node.h"

#define SPOCK_VERSION "5.0.14"
#define SPOCK_VERSION_NUM 50014
#define SPOCK_VERSION "5.0.15"
#define SPOCK_VERSION_NUM 50015

#define EXTENSION_NAME "spock"
#define SPOCK_SECLABEL_PROVIDER "spock"
Expand Down
4 changes: 2 additions & 2 deletions pkg/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export PG_MAJOR_VERSION="$(echo "$PG_VERSION" | cut -d. -f1)"
# only used as the clone fallback when release-artifacts/ has no staged
# tarball (i.e. a local build outside the workflow).
export PG_SPOCK_REPO="https://github.com/pgEdge/spock.git"
export SPOCK_BRANCH="${COMPONENT_BRANCH:-v5.0.14-rc.1}"
export SPOCK_BRANCH="${COMPONENT_BRANCH:-v5.0.15-rc.1}"

# Upstream version, suffix-stripped (e.g. 5.0.11). Used for the source
# tarball name, its internal directory, and the RPM Version.
export SPOCK_VERSION="${COMPONENT_VERSION:-5.0.14}"
export SPOCK_VERSION="${COMPONENT_VERSION:-5.0.15}"

# Appending 0 after 5 to create major version 50 even in case of 5.1.0
export SPOCK_MAJOR_VERSION=$(echo ${SPOCK_VERSION} | cut -d. -f1 | tr -d .)0
Expand Down
6 changes: 6 additions & 0 deletions sql/spock--5.0.14--5.0.15.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* spock--5.0.14--5.0.15.sql */

-- complain if script is sourced in psql, rather than via ALTER EXTENSION
\echo Use "ALTER EXTENSION spock UPDATE TO '5.0.15'" to load this file. \quit

-- No schema changes in 5.0.15.
2 changes: 1 addition & 1 deletion tests/regress/expected/init.out
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ CREATE EXTENSION IF NOT EXISTS spock;
List of installed extensions
Name | Version | Schema | Description
-------+---------+--------+--------------------------------
spock | 5.0.14 | spock | PostgreSQL Logical Replication
spock | 5.0.15 | spock | PostgreSQL Logical Replication
(1 row)

SELECT * FROM spock.node_create(node_name := 'test_provider', dsn := (SELECT provider_dsn FROM spock_regress_variables()) || ' user=super');
Expand Down
2 changes: 1 addition & 1 deletion tests/regress/expected/init_1.out
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ CREATE EXTENSION IF NOT EXISTS spock;
List of installed extensions
Name | Version | Default version | Schema | Description
-------+---------+-----------------+--------+--------------------------------
spock | 5.0.14 | 5.0.14 | spock | PostgreSQL Logical Replication
spock | 5.0.15 | 5.0.15 | spock | PostgreSQL Logical Replication
(1 row)

SELECT * FROM spock.node_create(node_name := 'test_provider', dsn := (SELECT provider_dsn FROM spock_regress_variables()) || ' user=super');
Expand Down
Loading