@@ -73,7 +73,7 @@ select -- pg_backend_pid(), -- if we're connecting through pgbouncer, then promp
7373 exists(
7474 select
7575 from fs
76- join pg_settings as s on fs.name = lower(s.name)
76+ join pg_settings as s on lower( fs.name) = lower(s.name)
7777 where not fs.applied and not s.pending_restart
7878 ) as is_config_file_error,
7979
@@ -85,19 +85,19 @@ select -- pg_backend_pid(), -- if we're connecting through pgbouncer, then promp
8585 select
8686 from fs
8787 cross join current_setting(fs.name) as cs(setting)
88- join pg_settings as s on fs.name = lower(s.name)
89- and fs.setting is distinct from cs.setting
90- and fs.setting is distinct from s.setting
88+ join pg_settings as s on lower( fs.name) = lower(s.name)
89+ and lower( fs.setting) is distinct from lower( cs.setting)
90+ and lower( fs.setting) is distinct from lower( s.setting)
9191 and fs.applied and not s.pending_restart
9292 ) as is_pending_reload,
9393
9494 exists(
9595 select
9696 from fs
9797 cross join current_setting(fs.name) as cs(setting)
98- join pg_settings as s on fs.name = lower(s.name)
99- and fs.setting is distinct from cs.setting
100- and fs.setting is distinct from s.setting
98+ join pg_settings as s on lower( fs.name) = lower(s.name)
99+ and lower( fs.setting) is distinct from lower( cs.setting)
100+ and lower( fs.setting) is distinct from lower( s.setting)
101101 and fs.applied
102102 and case s.vartype
103103 when 'enum' then fs.setting != any (s.enumvals)
@@ -129,7 +129,7 @@ from coalesce(
129129 select t.sourcefile, t.sourceline, t.name, t.setting, t.applied, t.error,
130130 s.vartype, s.min_val, s.max_val, s.enumvals, s.extra_desc
131131 from t
132- join pg_settings as s on t.name = lower(s.name)
132+ join pg_settings as s on lower( t.name) = lower(s.name)
133133 where not t.applied and not s.pending_restart;
134134\endif
135135
@@ -153,9 +153,9 @@ from coalesce(
153153 fs.setting as tobe_setting
154154 from fs
155155 cross join current_setting(fs.name) as cs(setting)
156- join pg_settings as s on fs.name = lower(s.name)
157- and fs.setting is distinct from cs.setting
158- and fs.setting is distinct from s.setting
156+ join pg_settings as s on lower( fs.name) = lower(s.name)
157+ and lower( fs.setting) is distinct from lower( cs.setting)
158+ and lower( fs.setting) is distinct from lower( s.setting)
159159 and s.pending_restart;
160160\endif
161161
@@ -173,9 +173,9 @@ from coalesce(
173173 fs.setting as tobe_setting
174174 from fs
175175 cross join current_setting(fs.name) as cs(setting)
176- join pg_settings as s on fs.name = lower(s.name)
177- and fs.setting is distinct from cs.setting
178- and fs.setting is distinct from s.setting
176+ join pg_settings as s on lower( fs.name) = lower(s.name)
177+ and lower( fs.setting) is distinct from lower( cs.setting)
178+ and lower( fs.setting) is distinct from lower( s.setting)
179179 and fs.applied and not s.pending_restart;
180180\endif
181181
@@ -194,9 +194,9 @@ from coalesce(
194194 s.enumvals, s.min_val, s.max_val
195195 from fs
196196 cross join current_setting(fs.name) as cs(setting)
197- join pg_settings as s on fs.name = lower(s.name)
198- and fs.setting is distinct from cs.setting
199- and fs.setting is distinct from s.setting
197+ join pg_settings as s on lower( fs.name) = lower(s.name)
198+ and lower( fs.setting) is distinct from lower( cs.setting)
199+ and lower( fs.setting) is distinct from lower( s.setting)
200200 and fs.applied
201201 and case s.vartype
202202 when 'enum' then fs.setting != any (s.enumvals)
0 commit comments