Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit66abcce

Browse files
alvherreibarwick
andcommitted
Don't uselessly escape a string that doesn't need escaping
Per gripe from Ian BarwickCo-authored-by: Ian Barwick <ian@2ndquadrant.com>Discussion:https://postgr.es/m/CABvVfJWNnNKb8cHsTLhkTsvL1+G6BVcV+57+w1JZ61p8YGPdWQ@mail.gmail.com
1 parente991b6c commit66abcce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,9 +1679,9 @@ GenerateRecoveryConf(PGconn *conn)
16791679

16801680
if (replication_slot)
16811681
{
1682-
escaped=escape_quotes(replication_slot);
1683-
appendPQExpBuffer(recoveryconfcontents,"primary_slot_name = '%s'\n",replication_slot);
1684-
free(escaped);
1682+
/* unescaped: ReplicationSlotValidateName allows [a-z0-9_] only */
1683+
appendPQExpBuffer(recoveryconfcontents,"primary_slot_name = '%s'\n",
1684+
replication_slot);
16851685
}
16861686

16871687
if (PQExpBufferBroken(recoveryconfcontents)||

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp