Commit 35b5f7b6 authored by Peter Eisentraut's avatar Peter Eisentraut

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.
parent 9cc27566
...@@ -2589,7 +2589,7 @@ dumpDatabase(Archive *fout) ...@@ -2589,7 +2589,7 @@ dumpDatabase(Archive *fout)
appendPQExpBufferStr(creaQry, "\n-- For binary upgrade, set datfrozenxid and datminmxid.\n"); appendPQExpBufferStr(creaQry, "\n-- For binary upgrade, set datfrozenxid and datminmxid.\n");
appendPQExpBuffer(creaQry, "UPDATE pg_catalog.pg_database\n" appendPQExpBuffer(creaQry, "UPDATE pg_catalog.pg_database\n"
"SET datfrozenxid = '%u', datminmxid = '%u'\n" "SET datfrozenxid = '%u', datminmxid = '%u'\n"
"WHERE datname = ", "WHERE datname = ",
frozenxid, minmxid); frozenxid, minmxid);
appendStringLiteralAH(creaQry, datname, fout); appendStringLiteralAH(creaQry, datname, fout);
appendPQExpBufferStr(creaQry, ";\n"); appendPQExpBufferStr(creaQry, ";\n");
...@@ -6281,7 +6281,7 @@ getPartitions(Archive *fout, int *numPartitions) ...@@ -6281,7 +6281,7 @@ getPartitions(Archive *fout, int *numPartitions)
appendPQExpBufferStr(query, appendPQExpBufferStr(query,
"SELECT inhrelid as partrelid, inhparent AS partparent," "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" " FROM pg_class c, pg_inherits"
" WHERE c.oid = inhrelid AND c.relispartition"); " WHERE c.oid = inhrelid AND c.relispartition");
......
...@@ -614,7 +614,7 @@ describeTypes(const char *pattern, bool verbose, bool showSystem) ...@@ -614,7 +614,7 @@ describeTypes(const char *pattern, bool verbose, bool showSystem)
appendPQExpBufferStr(&buf, appendPQExpBufferStr(&buf,
" pg_catalog.array_to_string(\n" " pg_catalog.array_to_string(\n"
" ARRAY(\n" " ARRAY(\n"
" SELECT e.enumlabel\n" " SELECT e.enumlabel\n"
" FROM pg_catalog.pg_enum e\n" " FROM pg_catalog.pg_enum e\n"
" WHERE e.enumtypid = t.oid\n"); " WHERE e.enumtypid = t.oid\n");
...@@ -4221,8 +4221,8 @@ listTSDictionaries(const char *pattern, bool verbose) ...@@ -4221,8 +4221,8 @@ listTSDictionaries(const char *pattern, bool verbose)
appendPQExpBuffer(&buf, appendPQExpBuffer(&buf,
" ( SELECT COALESCE(nt.nspname, '(null)')::pg_catalog.text || '.' || t.tmplname FROM \n" " ( SELECT COALESCE(nt.nspname, '(null)')::pg_catalog.text || '.' || t.tmplname FROM \n"
" pg_catalog.pg_ts_template t \n" " pg_catalog.pg_ts_template t \n"
" LEFT JOIN pg_catalog.pg_namespace nt ON nt.oid = t.tmplnamespace \n" " LEFT JOIN pg_catalog.pg_namespace nt ON nt.oid = t.tmplnamespace \n"
" WHERE d.dicttemplate = t.oid ) AS \"%s\", \n" " WHERE d.dicttemplate = t.oid ) AS \"%s\", \n"
" d.dictinitoption as \"%s\", \n", " d.dictinitoption as \"%s\", \n",
gettext_noop("Template"), gettext_noop("Template"),
gettext_noop("Init options")); gettext_noop("Init options"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment