Skip to content

Commit aa81591

Browse files
authored
if syntax error fixed, table alias renamed
1 parent 4028b6a commit aa81591

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

psqlrc/psqlrc

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -121,40 +121,40 @@ from coalesce(
121121
select * from pg_hba_file_rules where error is not null;
122122
\endif
123123

124-
if :is_pending_restart
124+
\if :is_pending_restart
125125
\echo :yellow'Server is pending to restart!':reset
126-
with f as (
126+
with fs as (
127127
select distinct on (name) *
128128
from pg_file_settings
129129
order by name, seqno desc
130130
)
131-
select f.sourcefile, f.sourceline, f.name,
131+
select fs.sourcefile, fs.sourceline, fs.name,
132132
cs.setting as current_setting,
133-
f.setting as tobe_setting
133+
fs.setting as tobe_setting
134134
from f
135-
cross join current_setting(f.name) as cs(setting)
136-
join pg_settings as s on f.name = s.name
137-
and f.setting is distinct from cs.setting
135+
cross join current_setting(fs.name) as cs(setting)
136+
join pg_settings as s on fs.name = s.name
137+
and fs.setting is distinct from cs.setting
138138
and s.pending_restart;
139139
\endif
140140

141141
\if :is_pending_reload
142142
\echo :yellow'Server is pending to reload!':reset
143-
with f as (
143+
with fs as (
144144
select distinct on (name) *
145145
from pg_file_settings
146146
order by name, seqno desc
147147
)
148-
select f.sourcefile, f.sourceline, f.name,
148+
select fs.sourcefile, fs.sourceline, fs.name,
149149
cs.setting as current_setting,
150-
f.setting as tobe_setting,
151-
f.applied
150+
fs.setting as tobe_setting,
151+
fs.applied
152152
from f
153-
cross join current_setting(f.name) as cs(setting)
154-
join pg_settings as s on f.name = s.name
155-
and f.setting is distinct from cs.setting
156-
and f.setting is distinct from s.setting
157-
and f.applied and not s.pending_restart;
153+
cross join current_setting(fs.name) as cs(setting)
154+
join pg_settings as s on fs.name = s.name
155+
and fs.setting is distinct from cs.setting
156+
and fs.setting is distinct from s.setting
157+
and fs.applied and not s.pending_restart;
158158
\endif
159159

160160
/* psql escape codes:

0 commit comments

Comments
 (0)