mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Replace some appendStringInfo* calls with more appropriate variants
Author: David Rowley <dgrowleyml@gmail.com>
This commit is contained in:
@ -2734,7 +2734,7 @@ postgresImportForeignSchema(ImportForeignSchemaStmt *stmt, Oid serverOid)
|
||||
appendStringInfoString(&buf, ", ");
|
||||
deparseStringLiteral(&buf, rv->relname);
|
||||
}
|
||||
appendStringInfoString(&buf, ")");
|
||||
appendStringInfoChar(&buf, ')');
|
||||
}
|
||||
|
||||
/* Append ORDER BY at the end of query to ensure output ordering */
|
||||
@ -2798,7 +2798,7 @@ postgresImportForeignSchema(ImportForeignSchemaStmt *stmt, Oid serverOid)
|
||||
*/
|
||||
appendStringInfoString(&buf, " OPTIONS (column_name ");
|
||||
deparseStringLiteral(&buf, attname);
|
||||
appendStringInfoString(&buf, ")");
|
||||
appendStringInfoChar(&buf, ')');
|
||||
|
||||
/* Add COLLATE if needed */
|
||||
if (import_collate && collname != NULL && collnamespace != NULL)
|
||||
|
@ -419,7 +419,7 @@ pg_decode_change(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
|
||||
get_namespace_name(
|
||||
get_rel_namespace(RelationGetRelid(relation))),
|
||||
NameStr(class_form->relname)));
|
||||
appendStringInfoString(ctx->out, ":");
|
||||
appendStringInfoChar(ctx->out, ':');
|
||||
|
||||
switch (change->action)
|
||||
{
|
||||
|
Reference in New Issue
Block a user