Skip to content

Logical Replication #795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5e851ea
Logical replication initial draft.
Zvirovyi Feb 27, 2025
0af25e4
Merge branch 'main' into logical-replication
Zvirovyi Feb 27, 2025
7cadec0
Logical replication work.
Zvirovyi Mar 1, 2025
8160307
Logical replication work.
Zvirovyi Mar 3, 2025
2e7e620
Logical replication work. Format & lint.
Zvirovyi Mar 4, 2025
50479e0
Logical Replication: cleanup of unused subscriptions, publications an…
Zvirovyi Mar 5, 2025
0e74163
Logical Replication: replication slots cleanup, validation improvement.
Zvirovyi Mar 12, 2025
d79e396
Merge branch 'main' into logical-replication
Zvirovyi Mar 12, 2025
f776307
Logical Replication: improve cleanup; restrict restore action during …
Zvirovyi Mar 17, 2025
c9a95c5
Merge branch 'main' into logical-replication
Zvirovyi Mar 17, 2025
43f42a5
Logical Replication: initial primary change detection.
Zvirovyi Mar 17, 2025
7fb4f6f
Logical Replication: add primary switchover and secrets change propag…
Zvirovyi Mar 19, 2025
ffccfc0
Merge branch 'main' into logical-replication
Zvirovyi Mar 19, 2025
1ccc21a
Logical Replication: format tables for publications and subscriptions…
Zvirovyi Mar 21, 2025
8be5624
Merge branch 'main' into logical-replication
Zvirovyi Mar 21, 2025
6d99638
Sync postgresql lib from K8s.
Zvirovyi Mar 21, 2025
5ce7eac
Revert postgresql_tls lib.
Zvirovyi Mar 21, 2025
1b7f5a4
Logical Replication: add logical replication offer relation to pre re…
Zvirovyi Mar 21, 2025
fda26fc
Logical Replication: remove leader restriction for the list-publicati…
Zvirovyi Mar 21, 2025
2ef8af9
Merge branch 'main' into logical-replication
Zvirovyi Mar 24, 2025
8a22f6a
Fix unit tests.
Zvirovyi Mar 24, 2025
5b80d6d
Add logical replication integration test.
Zvirovyi Mar 24, 2025
622fd85
Merge branch 'main' into logical-replication
Zvirovyi Mar 25, 2025
ad41afe
Update tests/integration/ha_tests/test_logical_replication.py
Zvirovyi Mar 25, 2025
601c281
Update tests/integration/ha_tests/test_logical_replication.py
Zvirovyi Mar 25, 2025
62087a3
Lint fix.
Zvirovyi Apr 8, 2025
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
24 changes: 24 additions & 0 deletions actions.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Copyright 2021 Canonical Ltd.
# See LICENSE file for licensing details.

# TODO: add descriptions for logical replication actions

add-publication:
params:
name:
type: string
database:
type: string
tables:
type: string
create-backup:
description: Creates a backup to s3 storage.
params:
Expand Down Expand Up @@ -30,6 +40,8 @@ get-password:
Possible values - operator, replication, rewind, patroni.
list-backups:
description: Lists backups in s3 storage.
list-publications:
list-subscriptions:
pre-upgrade-check:
description: Run necessary pre-upgrade checks and preparations before executing a charm refresh.
promote-to-primary:
Expand All @@ -43,6 +55,10 @@ promote-to-primary:
force:
type: boolean
description: Force the promotion of a cluster when there is already a primary cluster.
remove-publication:
params:
name:
type: string
restore:
description: Restore a database backup using pgBackRest.
S3 credentials are retrieved from a relation with the S3 integrator charm.
Expand Down Expand Up @@ -70,3 +86,11 @@ set-tls-private-key:
private-key:
type: string
description: The content of private key for communications with clients. Content will be auto-generated if this option is not specified.
subscribe:
params:
name:
type: string
unsubscribe:
params:
name:
type: string
Loading
Loading