Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Enable Failover Option for Replication Slots #619

@iamseki

Description

@iamseki

Hey guys!

I'm using PGSync with a PostgreSQL cluster and would like to enable the native failover option when creating replication slots, which was introduced in PostgreSQL 17.

I also noticed a TODO in the codebase about not overriding existing slots:

    def create_replication_slot(self, slot_name: str) -> None:
        """Create a replication slot.

        TODO:
        - Only create the replication slot if it does not exist
          otherwise warn that it already exists and return

This made me wonder: Is there currently an option to enable failover when creating slots? If not, is there a specific reason why PGSync doesn't expose this control to users? Are there concerns I'm not aware of?

Thank you for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions