summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2017-04-12 18:43:01 +0000
committerPeter Eisentraut2017-04-12 18:43:01 +0000
commit35b5f7b608fa1ae12d07cd475c382c5f1341648d (patch)
treeeff8b61ce3b4512835b08994bdabafa4094d6768
parent9cc27566c1a8d659c15b9eea2413dcc07a7a42c9 (diff)
Remove some tabs in SQL code in C string literals
This is not handled uniformly throughout the code, but at least nearby code can be consistent.
-rw-r--r--src/bin/pg_dump/pg_dump.c4
-rw-r--r--src/bin/psql/describe.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 65a2f2307a..5bd4af22c9 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -2589,7 +2589,7 @@ dumpDatabase(Archive *fout)
appendPQExpBufferStr(creaQry, "\n-- For binary upgrade, set datfrozenxid and datminmxid.\n");
appendPQExpBuffer(creaQry, "UPDATE pg_catalog.pg_database\n"
"SET datfrozenxid = '%u', datminmxid = '%u'\n"
- "WHERE datname = ",
+ "WHERE datname = ",
frozenxid, minmxid);
appendStringLiteralAH(creaQry, datname, fout);
appendPQExpBufferStr(creaQry, ";\n");
@@ -6281,7 +6281,7 @@ getPartitions(Archive *fout, int *numPartitions)
appendPQExpBufferStr(query,
"SELECT inhrelid as partrelid, inhparent AS partparent,"
- " pg_get_expr(relpartbound, inhrelid) AS partbound"
+ " pg_get_expr(relpartbound, inhrelid) AS partbound"
" FROM pg_class c, pg_inherits"
" WHERE c.oid = inhrelid AND c.relispartition");
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index e7c3d738f3..696b1530f8 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -614,7 +614,7 @@ describeTypes(const char *pattern, bool verbose, bool showSystem)
appendPQExpBufferStr(&buf,
" pg_catalog.array_to_string(\n"
" ARRAY(\n"
- " SELECT e.enumlabel\n"
+ " SELECT e.enumlabel\n"
" FROM pg_catalog.pg_enum e\n"
" WHERE e.enumtypid = t.oid\n");
@@ -4221,8 +4221,8 @@ listTSDictionaries(const char *pattern, bool verbose)
appendPQExpBuffer(&buf,
" ( SELECT COALESCE(nt.nspname, '(null)')::pg_catalog.text || '.' || t.tmplname FROM \n"
" pg_catalog.pg_ts_template t \n"
- " LEFT JOIN pg_catalog.pg_namespace nt ON nt.oid = t.tmplnamespace \n"
- " WHERE d.dicttemplate = t.oid ) AS \"%s\", \n"
+ " LEFT JOIN pg_catalog.pg_namespace nt ON nt.oid = t.tmplnamespace \n"
+ " WHERE d.dicttemplate = t.oid ) AS \"%s\", \n"
" d.dictinitoption as \"%s\", \n",
gettext_noop("Template"),
gettext_noop("Init options"));