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
0c22327f
Commit
0c22327f
authored
Apr 13, 2017
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless trailing spaces in queries in C strings
Author: Alexander Law <exclusion@gmail.com>
parent
674677c7
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
85 additions
and
85 deletions
+85
-85
contrib/oid2name/oid2name.c
contrib/oid2name/oid2name.c
+6
-6
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+6
-6
src/bin/pg_rewind/libpq_fetch.c
src/bin/pg_rewind/libpq_fetch.c
+1
-1
src/bin/psql/describe.c
src/bin/psql/describe.c
+72
-72
No files found.
contrib/oid2name/oid2name.c
View file @
0c22327f
...
@@ -506,20 +506,20 @@ sql_exec_searchtables(PGconn *conn, struct options * opts)
...
@@ -506,20 +506,20 @@ sql_exec_searchtables(PGconn *conn, struct options * opts)
/* now build the query */
/* now build the query */
todo
=
psprintf
(
todo
=
psprintf
(
"SELECT pg_catalog.pg_relation_filenode(c.oid) as
\"
Filenode
\"
, relname as
\"
Table Name
\"
%s
\n
"
"SELECT pg_catalog.pg_relation_filenode(c.oid) as
\"
Filenode
\"
, relname as
\"
Table Name
\"
%s
\n
"
"FROM pg_catalog.pg_class c
\n
"
"FROM pg_catalog.pg_class c
\n
"
" LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
\n
"
" LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
\n
"
" LEFT JOIN pg_catalog.pg_database d ON d.datname = pg_catalog.current_database(),
\n
"
" LEFT JOIN pg_catalog.pg_database d ON d.datname = pg_catalog.current_database(),
\n
"
" pg_catalog.pg_tablespace t
\n
"
" pg_catalog.pg_tablespace t
\n
"
"WHERE relkind IN ("
CppAsString2
(
RELKIND_RELATION
)
","
"WHERE relkind IN ("
CppAsString2
(
RELKIND_RELATION
)
","
CppAsString2
(
RELKIND_MATVIEW
)
","
CppAsString2
(
RELKIND_MATVIEW
)
","
CppAsString2
(
RELKIND_INDEX
)
","
CppAsString2
(
RELKIND_INDEX
)
","
CppAsString2
(
RELKIND_SEQUENCE
)
","
CppAsString2
(
RELKIND_SEQUENCE
)
","
CppAsString2
(
RELKIND_TOASTVALUE
)
") AND
\n
"
CppAsString2
(
RELKIND_TOASTVALUE
)
") AND
\n
"
" t.oid = CASE
\n
"
" t.oid = CASE
\n
"
" WHEN reltablespace <> 0 THEN reltablespace
\n
"
" WHEN reltablespace <> 0 THEN reltablespace
\n
"
" ELSE dattablespace
\n
"
" ELSE dattablespace
\n
"
" END AND
\n
"
" END AND
\n
"
" (%s)
\n
"
" (%s)
\n
"
"ORDER BY relname
\n
"
,
"ORDER BY relname
\n
"
,
opts
->
extended
?
addfields
:
""
,
opts
->
extended
?
addfields
:
""
,
qualifiers
);
qualifiers
);
...
...
src/bin/pg_dump/pg_dump.c
View file @
0c22327f
...
@@ -13984,12 +13984,12 @@ dumpTSConfig(Archive *fout, TSConfigInfo *cfginfo)
...
@@ -13984,12 +13984,12 @@ dumpTSConfig(Archive *fout, TSConfigInfo *cfginfo)
resetPQExpBuffer
(
query
);
resetPQExpBuffer
(
query
);
appendPQExpBuffer
(
query
,
appendPQExpBuffer
(
query
,
"SELECT
\n
"
"SELECT
\n
"
" ( SELECT alias FROM pg_catalog.ts_token_type('%u'::pg_catalog.oid) AS t
\n
"
" ( SELECT alias FROM pg_catalog.ts_token_type('%u'::pg_catalog.oid) AS t
\n
"
" WHERE t.tokid = m.maptokentype ) AS tokenname,
\n
"
" WHERE t.tokid = m.maptokentype ) AS tokenname,
\n
"
" m.mapdict::pg_catalog.regdictionary AS dictname
\n
"
" m.mapdict::pg_catalog.regdictionary AS dictname
\n
"
"FROM pg_catalog.pg_ts_config_map AS m
\n
"
"FROM pg_catalog.pg_ts_config_map AS m
\n
"
"WHERE m.mapcfg = '%u'
\n
"
"WHERE m.mapcfg = '%u'
\n
"
"ORDER BY m.mapcfg, m.maptokentype, m.mapseqno"
,
"ORDER BY m.mapcfg, m.maptokentype, m.mapseqno"
,
cfginfo
->
cfgparser
,
cfginfo
->
dobj
.
catId
.
oid
);
cfginfo
->
cfgparser
,
cfginfo
->
dobj
.
catId
.
oid
);
...
...
src/bin/pg_rewind/libpq_fetch.c
View file @
0c22327f
...
@@ -489,7 +489,7 @@ libpq_executeFileMap(filemap_t *map)
...
@@ -489,7 +489,7 @@ libpq_executeFileMap(filemap_t *map)
* temporary table. Now, actually fetch all of those ranges.
* temporary table. Now, actually fetch all of those ranges.
*/
*/
sql
=
sql
=
"SELECT path, begin,
\n
"
"SELECT path, begin,
\n
"
" pg_read_binary_file(path, begin, len, true) AS chunk
\n
"
" pg_read_binary_file(path, begin, len, true) AS chunk
\n
"
"FROM fetchchunks
\n
"
;
"FROM fetchchunks
\n
"
;
...
...
src/bin/psql/describe.c
View file @
0c22327f
This diff is collapsed.
Click to expand it.
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