Skip to content

Replication commands don't quote slot names, output plugin names and option values #6693

Closed

Description

@Brar

Npgsql builds replication commands by pasting names and values in as they are:

await using var conn = new LogicalReplicationConnection(connectionString);
await conn.Open();
await conn.CreatePgOutputReplicationSlot("1abc"); // PostgresException 42601: syntax error

Names can be quoted as identifiers after lowercasing A-Z, which is what the server does with unquoted names, so existing names keep their meaning (postgres repl_scanner.l:206-211), and values can be sent as literals with '' escaping. The same code is on the 8.0, 9.0 and 10.0 hotfix branches.

Activity

  1. added this to the 11.0.0 milestone on Oct 25, 2026
  2. self-assigned this
    on Oct 25, 2026
  3. added theissue type on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions