mirror of
https://github.com/postgres/postgres.git
synced 2026-06-04 22:32:45 -04: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
f6c7c64e9f
commit
0f9133b66b
1 changed files with 3 additions and 3 deletions
|
|
@ -1555,9 +1555,9 @@ GenerateRecoveryConf(PGconn *conn)
|
|||
|
||||
if (replication_slot)
|
||||
{
|
||||
escaped = escape_quotes(replication_slot);
|
||||
appendPQExpBuffer(recoveryconfcontents, "primary_slot_name = '%s'\n", replication_slot);
|
||||
free(escaped);
|
||||
/* unescaped: ReplicationSlotValidateName allows [a-z0-9_] only */
|
||||
appendPQExpBuffer(recoveryconfcontents, "primary_slot_name = '%s'\n",
|
||||
replication_slot);
|
||||
}
|
||||
|
||||
if (PQExpBufferBroken(recoveryconfcontents) ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue