We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ab6608 commit 0994cfcCopy full SHA for 0994cfc
src/bin/pg_basebackup/pg_basebackup.c
@@ -1716,9 +1716,9 @@ GenerateRecoveryConf(PGconn *conn)
1716
1717
if (replication_slot)
1718
{
1719
- escaped = escape_quotes(replication_slot);
1720
- appendPQExpBuffer(recoveryconfcontents, "primary_slot_name = '%s'\n", replication_slot);
1721
- free(escaped);
+ /* unescaped: ReplicationSlotValidateName allows [a-z0-9_] only */
+ appendPQExpBuffer(recoveryconfcontents, "primary_slot_name = '%s'\n",
+ replication_slot);
1722
}
1723
1724
if (PQExpBufferBroken(recoveryconfcontents) ||
0 commit comments