mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-23 13:10:41 +02:00
Don't uselessly escape a string that doesn't need escaping
Per gripe from Ian Barwick Co-authored-by: Ian Barwick <ian@2ndquadrant.com> Discussion: https://postgr.es/m/CABvVfJWNnNKb8cHsTLhkTsvL1+G6BVcV+57+w1JZ61p8YGPdWQ@mail.gmail.com
This commit is contained in:
parent
e991b6cce3
commit
66abcce55f
@ -1679,9 +1679,9 @@ GenerateRecoveryConf(PGconn *conn)
|
|||||||
|
|
||||||
if (replication_slot)
|
if (replication_slot)
|
||||||
{
|
{
|
||||||
escaped = escape_quotes(replication_slot);
|
/* unescaped: ReplicationSlotValidateName allows [a-z0-9_] only */
|
||||||
appendPQExpBuffer(recoveryconfcontents, "primary_slot_name = '%s'\n", replication_slot);
|
appendPQExpBuffer(recoveryconfcontents, "primary_slot_name = '%s'\n",
|
||||||
free(escaped);
|
replication_slot);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PQExpBufferBroken(recoveryconfcontents) ||
|
if (PQExpBufferBroken(recoveryconfcontents) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user