You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A valid slot name that starts with a digit, e.g. 1abc, fails with 42601: syntax error, because the replication scanner reads 1 as a number (postgres repl_scanner.l:107-110, 151-154). PostgreSQL allows digits anywhere in slot names (postgres slot.c:331-335), so such a slot can exist, e.g. created with pg_create_logical_replication_slot('1abc', 'pgoutput'), but Npgsql can't use it.
A name like x TEMPORARY or x WAIT changes the command (inferred from postgres repl_gram.y:196, 259).
Option values are wrapped in '…', and PgOutputReplicationOptions wraps publication names in "…", without escaping (LogicalReplicationConnectionExtensions.cs:167, PgOutputReplicationOptions.cs:150). A ' in a value or publication name breaks the command, and a publication name containing "," subscribes to a different list of publications (inferred).
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