diff options
author | David Rowley <drowley@postgresql.org> | 2025-04-11 10:07:22 +1200 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2025-04-11 10:07:22 +1200 |
commit | 928394b664bc4afef2fe6dc69a70e4074886e065 (patch) | |
tree | 820653f798f03379ef7f14108ddbabc5219a45ba /src/backend/replication/logical/tablesync.c | |
parent | 55ef7abf88c07e9f716846e645e1628c667c54a7 (diff) | |
download | postgresql-928394b664bc4afef2fe6dc69a70e4074886e065.tar.gz postgresql-928394b664bc4afef2fe6dc69a70e4074886e065.zip |
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 <drowleyml@gmail.com
Discussion: https://postgr.es/m/CAApHDvqJnNjueb=Eoj8K+8n0g7nj_AcPWSiCj5RNV4fDejAfqA@mail.gmail.com
Diffstat (limited to 'src/backend/replication/logical/tablesync.c')
-rw-r--r-- | src/backend/replication/logical/tablesync.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/replication/logical/tablesync.c b/src/backend/replication/logical/tablesync.c index 65b98aa905f..8e1e8762f62 100644 --- a/src/backend/replication/logical/tablesync.c +++ b/src/backend/replication/logical/tablesync.c @@ -940,15 +940,15 @@ fetch_remote_table_info(char *nspname, char *relname, LogicalRepRelation *lrel, * Now fetch column names and types. */ resetStringInfo(&cmd); - appendStringInfo(&cmd, - "SELECT a.attnum," - " a.attname," - " a.atttypid," - " a.attnum = ANY(i.indkey)"); + appendStringInfoString(&cmd, + "SELECT a.attnum," + " a.attname," + " a.atttypid," + " a.attnum = ANY(i.indkey)"); /* Generated columns can be replicated since version 18. */ if (server_version >= 180000) - appendStringInfo(&cmd, ", a.attgenerated != ''"); + appendStringInfoString(&cmd, ", a.attgenerated != ''"); appendStringInfo(&cmd, " FROM pg_catalog.pg_attribute a" |