Skip to content

Commit 55c3d86

Browse files
committed
pg_upgrade: Fix some whitespace oddities
1 parent 61a07ba commit 55c3d86

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

contrib/pg_upgrade/check.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ set_locale_and_encoding(ClusterInfo *cluster)
351351

352352
res = executeQueryOrDie(conn,
353353
"SELECT datcollate, datctype "
354-
"FROM pg_catalog.pg_database "
354+
"FROM pg_catalog.pg_database "
355355
"WHERE datname = 'template0' ");
356356
assert(PQntuples(res) == 1);
357357

@@ -381,7 +381,7 @@ set_locale_and_encoding(ClusterInfo *cluster)
381381

382382
res = executeQueryOrDie(conn,
383383
"SELECT pg_catalog.pg_encoding_to_char(encoding) "
384-
"FROM pg_catalog.pg_database "
384+
"FROM pg_catalog.pg_database "
385385
"WHERE datname = 'template0' ");
386386
assert(PQntuples(res) == 1);
387387

contrib/pg_upgrade/version_old_8_3.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ old_8_3_check_for_name_data_type_usage(ClusterInfo *cluster)
6161
" a.atttypid = 'pg_catalog.name'::pg_catalog.regtype AND "
6262
" c.relnamespace = n.oid AND "
6363
/* exclude possible orphaned temp tables */
64-
" n.nspname !~ '^pg_temp_' AND "
64+
" n.nspname !~ '^pg_temp_' AND "
6565
" n.nspname !~ '^pg_toast_temp_' AND "
6666
" n.nspname NOT IN ('pg_catalog', 'information_schema')");
6767

@@ -151,7 +151,7 @@ old_8_3_check_for_tsquery_usage(ClusterInfo *cluster)
151151
" a.atttypid = 'pg_catalog.tsquery'::pg_catalog.regtype AND "
152152
" c.relnamespace = n.oid AND "
153153
/* exclude possible orphaned temp tables */
154-
" n.nspname !~ '^pg_temp_' AND "
154+
" n.nspname !~ '^pg_temp_' AND "
155155
" n.nspname !~ '^pg_toast_temp_' AND "
156156
" n.nspname NOT IN ('pg_catalog', 'information_schema')");
157157

@@ -328,7 +328,7 @@ old_8_3_rebuild_tsvector_tables(ClusterInfo *cluster, bool check_mode)
328328
" a.atttypid = 'pg_catalog.tsvector'::pg_catalog.regtype AND "
329329
" c.relnamespace = n.oid AND "
330330
/* exclude possible orphaned temp tables */
331-
" n.nspname !~ '^pg_temp_' AND "
331+
" n.nspname !~ '^pg_temp_' AND "
332332
" n.nspname !~ '^pg_toast_temp_' AND "
333333
" n.nspname NOT IN ('pg_catalog', 'information_schema')");
334334

@@ -700,7 +700,7 @@ old_8_3_create_sequence_script(ClusterInfo *cluster)
700700
"WHERE c.relkind = 'S' AND "
701701
" c.relnamespace = n.oid AND "
702702
/* exclude possible orphaned temp tables */
703-
" n.nspname !~ '^pg_temp_' AND "
703+
" n.nspname !~ '^pg_temp_' AND "
704704
" n.nspname !~ '^pg_toast_temp_' AND "
705705
" n.nspname NOT IN ('pg_catalog', 'information_schema')");
706706

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy