diff options
author | David Rowley | 2025-04-10 22:07:22 +0000 |
---|---|---|
committer | David Rowley | 2025-04-10 22:07:22 +0000 |
commit | 928394b664bc4afef2fe6dc69a70e4074886e065 (patch) | |
tree | 820653f798f03379ef7f14108ddbabc5219a45ba /contrib | |
parent | 55ef7abf88c07e9f716846e645e1628c667c54a7 (diff) |
Improve various new-to-v18 appendStringInfo calls
Similar to 8461424fd, here we adjust a few new locations which were not
using the most suitable appendStringInfo* function for the intended
purpose.
Author: David Rowley <[email protected]
Discussion: https://postgr.es/m/CAApHDvqJnNjueb=Eoj8K+8n0g7nj_AcPWSiCj5RNV4fDejAfqA@mail.gmail.com
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/dblink/dblink.c | 2 | ||||
-rw-r--r-- | contrib/pg_overexplain/pg_overexplain.c | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c index c2e695e364e..092f0753ff5 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -3228,7 +3228,7 @@ appendSCRAMKeysInfo(StringInfo buf) appendStringInfo(buf, "scram_client_key='%s' ", client_key); appendStringInfo(buf, "scram_server_key='%s' ", server_key); - appendStringInfo(buf, "require_auth='scram-sha-256' "); + appendStringInfoString(buf, "require_auth='scram-sha-256' "); pfree(client_key); pfree(server_key); diff --git a/contrib/pg_overexplain/pg_overexplain.c b/contrib/pg_overexplain/pg_overexplain.c index afc34ad5f2f..68c40fc98ea 100644 --- a/contrib/pg_overexplain/pg_overexplain.c +++ b/contrib/pg_overexplain/pg_overexplain.c @@ -292,7 +292,7 @@ overexplain_debug(PlannedStmt *plannedstmt, ExplainState *es) if (es->format == EXPLAIN_FORMAT_TEXT) { ExplainIndentText(es); - appendStringInfo(es->str, "PlannedStmt:\n"); + appendStringInfoString(es->str, "PlannedStmt:\n"); es->indent++; } @@ -329,19 +329,19 @@ overexplain_debug(PlannedStmt *plannedstmt, ExplainState *es) /* Print various properties as a comma-separated list of flags. */ initStringInfo(&flags); if (plannedstmt->hasReturning) - appendStringInfo(&flags, ", hasReturning"); + appendStringInfoString(&flags, ", hasReturning"); if (plannedstmt->hasModifyingCTE) - appendStringInfo(&flags, ", hasModifyingCTE"); + appendStringInfoString(&flags, ", hasModifyingCTE"); if (plannedstmt->canSetTag) - appendStringInfo(&flags, ", canSetTag"); + appendStringInfoString(&flags, ", canSetTag"); if (plannedstmt->transientPlan) - appendStringInfo(&flags, ", transientPlan"); + appendStringInfoString(&flags, ", transientPlan"); if (plannedstmt->dependsOnRole) - appendStringInfo(&flags, ", dependsOnRole"); + appendStringInfoString(&flags, ", dependsOnRole"); if (plannedstmt->parallelModeNeeded) - appendStringInfo(&flags, ", parallelModeNeeded"); + appendStringInfoString(&flags, ", parallelModeNeeded"); if (flags.len == 0) - appendStringInfo(&flags, ", none"); + appendStringInfoString(&flags, ", none"); ExplainPropertyText("Flags", flags.data + 2, es); /* Various lists of integers. */ @@ -763,7 +763,7 @@ overexplain_intlist(const char *qlabel, List *list, ExplainState *es) } else { - appendStringInfo(&buf, " not an integer list"); + appendStringInfoString(&buf, " not an integer list"); Assert(false); } |