Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit55c3d86

Browse files
committed
pg_upgrade: Fix some whitespace oddities
1 parent61a07ba commit55c3d86

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-
"FROMpg_catalog.pg_database "
354+
"FROMpg_catalog.pg_database "
355355
"WHEREdatname = '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-
"FROMpg_catalog.pg_database "
384+
"FROMpg_catalog.pg_database "
385385
"WHEREdatname = '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
"WHEREc.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)

[8]ページ先頭

©2009-2025 Movatter.jp