Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d02f1647
Commit
d02f1647
authored
May 11, 2015
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace some appendStringInfo* calls with more appropriate variants
Author: David Rowley <dgrowleyml@gmail.com>
parent
b488c580
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
contrib/postgres_fdw/postgres_fdw.c
contrib/postgres_fdw/postgres_fdw.c
+2
-2
contrib/test_decoding/test_decoding.c
contrib/test_decoding/test_decoding.c
+1
-1
src/backend/access/rmgrdesc/smgrdesc.c
src/backend/access/rmgrdesc/smgrdesc.c
+1
-1
src/backend/access/rmgrdesc/xlogdesc.c
src/backend/access/rmgrdesc/xlogdesc.c
+2
-2
src/backend/catalog/namespace.c
src/backend/catalog/namespace.c
+1
-1
src/backend/utils/adt/ruleutils.c
src/backend/utils/adt/ruleutils.c
+1
-1
No files found.
contrib/postgres_fdw/postgres_fdw.c
View file @
d02f1647
...
...
@@ -2734,7 +2734,7 @@ postgresImportForeignSchema(ImportForeignSchemaStmt *stmt, Oid serverOid)
appendStringInfoString
(
&
buf
,
", "
);
deparseStringLiteral
(
&
buf
,
rv
->
relname
);
}
appendStringInfo
String
(
&
buf
,
")"
);
appendStringInfo
Char
(
&
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
);
appendStringInfo
String
(
&
buf
,
")"
);
appendStringInfo
Char
(
&
buf
,
')'
);
/* Add COLLATE if needed */
if
(
import_collate
&&
collname
!=
NULL
&&
collnamespace
!=
NULL
)
...
...
contrib/test_decoding/test_decoding.c
View file @
d02f1647
...
...
@@ -419,7 +419,7 @@ pg_decode_change(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
get_namespace_name
(
get_rel_namespace
(
RelationGetRelid
(
relation
))),
NameStr
(
class_form
->
relname
)));
appendStringInfo
String
(
ctx
->
out
,
":"
);
appendStringInfo
Char
(
ctx
->
out
,
':'
);
switch
(
change
->
action
)
{
...
...
src/backend/access/rmgrdesc/smgrdesc.c
View file @
d02f1647
...
...
@@ -29,7 +29,7 @@ smgr_desc(StringInfo buf, XLogReaderState *record)
xl_smgr_create
*
xlrec
=
(
xl_smgr_create
*
)
rec
;
char
*
path
=
relpathperm
(
xlrec
->
rnode
,
xlrec
->
forkNum
);
appendStringInfo
(
buf
,
"%s"
,
path
);
appendStringInfo
String
(
buf
,
path
);
pfree
(
path
);
}
else
if
(
info
==
XLOG_SMGR_TRUNCATE
)
...
...
src/backend/access/rmgrdesc/xlogdesc.c
View file @
d02f1647
...
...
@@ -75,7 +75,7 @@ xlog_desc(StringInfo buf, XLogReaderState *record)
{
xl_restore_point
*
xlrec
=
(
xl_restore_point
*
)
rec
;
appendStringInfo
(
buf
,
"%s"
,
xlrec
->
rp_name
);
appendStringInfo
String
(
buf
,
xlrec
->
rp_name
);
}
else
if
(
info
==
XLOG_FPI
||
info
==
XLOG_FPI_FOR_HINT
)
{
...
...
@@ -125,7 +125,7 @@ xlog_desc(StringInfo buf, XLogReaderState *record)
bool
fpw
;
memcpy
(
&
fpw
,
rec
,
sizeof
(
bool
));
appendStringInfo
(
buf
,
"%s"
,
fpw
?
"true"
:
"false"
);
appendStringInfo
String
(
buf
,
fpw
?
"true"
:
"false"
);
}
else
if
(
info
==
XLOG_END_OF_RECOVERY
)
{
...
...
src/backend/catalog/namespace.c
View file @
d02f1647
...
...
@@ -2937,7 +2937,7 @@ NameListToString(List *names)
if
(
IsA
(
name
,
String
))
appendStringInfoString
(
&
string
,
strVal
(
name
));
else
if
(
IsA
(
name
,
A_Star
))
appendStringInfo
String
(
&
string
,
"*"
);
appendStringInfo
Char
(
&
string
,
'*'
);
else
elog
(
ERROR
,
"unexpected node type in name list: %d"
,
(
int
)
nodeTag
(
name
));
...
...
src/backend/utils/adt/ruleutils.c
View file @
d02f1647
...
...
@@ -2174,7 +2174,7 @@ print_function_rettype(StringInfo buf, HeapTuple proctup)
appendStringInfoString
(
&
rbuf
,
"TABLE("
);
ntabargs
=
print_function_arguments
(
&
rbuf
,
proctup
,
true
,
false
);
if
(
ntabargs
>
0
)
appendStringInfo
String
(
&
rbuf
,
")"
);
appendStringInfo
Char
(
&
rbuf
,
')'
);
else
resetStringInfo
(
&
rbuf
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment