Skip to content
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

Add support for CopyBoth mode #2924

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Commits on Mar 11, 2024

  1. feat(replication): allow to specify the replication mode on connection

    Cf. https://www.postgresql.org/docs/current/protocol-replication.html
    
    Basically, we need to instruct the backend to go into logical
    replication walsender mode in order to be able to use commands like
    `CREATE_REPLICATION_SLOT` which are necessary to be able to seamlessly
    transition from an initial snapshot into the WAL streaming.
    grim7reaper committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    90babdc View commit details
    Browse the repository at this point in the history
  2. feat(replication): add support for Copy-both mode

    Copy-both mode is initiated when a backend in walsender mode executes a
    START_REPLICATION statement.
    grim7reaper committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    4be8307 View commit details
    Browse the repository at this point in the history
  3. make PgCopyBoth cloneable (it's all Arc under the hood)

    Also remove an unecessary mut
    grim7reaper committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    cfe10be View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cdcfaec View commit details
    Browse the repository at this point in the history
  5. fix doctest

    Don't use sqlx_postgres as its API isn't stable.
    Use sqlx itself as a dev-dependency instead.
    grim7reaper committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    0bdb8d9 View commit details
    Browse the repository at this point in the history
  6. Rework PgCopyBoth interface

    Use something similar to PgListener
    grim7reaper committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    3c8008c View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Configuration menu
    Copy the full SHA
    59dd588 View commit details
    Browse the repository at this point in the history
  2. Fix termination bug

    Ngoguey42 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    1d84169 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Reorder terms of select

    Ngoguey42 committed May 22, 2024
    Configuration menu
    Copy the full SHA
    09d92ee View commit details
    Browse the repository at this point in the history