mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Tidy-up some appendStringInfo*() usages
Make a few newish calls to appendStringInfo() which have no special formatting use appendStringInfoString() instead. Also, adjust usages of appendStringInfoString() which only append a string containing a single character to make use of appendStringInfoChar() instead. This makes the code marginally faster, but primarily this change is so we use the StringInfo type as it was intended to be used. Discussion: https://postgr.es/m/CAApHDvpXKQmL+r=VDNS98upqhr9yGBhv2Jw3GBFFk_wKHcB39A@mail.gmail.com
This commit is contained in:
@ -1282,7 +1282,7 @@ ReportSlotInvalidation(ReplicationSlotInvalidationCause cause,
|
||||
break;
|
||||
|
||||
case RS_INVAL_WAL_LEVEL:
|
||||
appendStringInfo(&err_detail, _("Logical decoding on standby requires wal_level >= logical on the primary server."));
|
||||
appendStringInfoString(&err_detail, _("Logical decoding on standby requires wal_level >= logical on the primary server."));
|
||||
break;
|
||||
case RS_INVAL_NONE:
|
||||
pg_unreachable();
|
||||
|
Reference in New Issue
Block a user