Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf/5303~1
Choose a base ref
...
head repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf/5303
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Mar 24, 2025

  1. Allow pg_recvlogical --drop-slot to work without --dbname.

    When pg_recvlogical was introduced in 9.4, the --dbname option was not
    required for --drop-slot. Without it, pg_recvlogical --drop-slot connected
    using a replication connection (not tied to a specific database) and
    was able to drop both physical and logical replication slots, similar to
    pg_receivewal --drop-slot.
    
    However, commit 0c013e0 unintentionally changed this behavior in 9.5,
    making pg_recvlogical always check whether it's connected to a specific
    database and fail if it's not. This change was expected for --create-slot
    and --start, which handle logical replication slots and require a database
    connection, but it was unnecessary for --drop-slot, which should work with
    any replication connection. As a result, --dbname became a required option
    for --drop-slot.
    
    This commit removes that restriction, restoring the original behavior and
    allowing pg_recvlogical --drop-slot to work without specifying --dbname.
    
    Although this issue originated from an unintended change, it has existed
    for a long time without complaints or bug reports, and the documentation
    never explicitly stated that --drop-slot should work without --dbname.
    Therefore, the change is not treated as a bug fix and is applied only to
    master.
    
    Author: Hayato Kuroda <[email protected]>
    Reviewed-by: Fujii Masao <[email protected]>
    Discussion: https://postgr.es/m/[email protected]
    MasaoFujii committed Mar 24, 2025
    Configuration menu
    Copy the full SHA
    c68100a View commit details
    Browse the repository at this point in the history
Loading