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

Commitf20ec2e

Browse files
committed
Clean up script.
1 parent1051346 commitf20ec2e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

‎src/backend/utils/misc/check_guc

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,11 @@
1919
INTENTIONALLY_NOT_INCLUDED="pre_auth_delay lc_messages lc_monetary\
2020
lc_time lc_numeric fixbtree"
2121

22-
#self_path stolen from pg_ctl
23-
self_path=`echo"$0"| sed's,/[^/]*$,,'`# (dirname command is not portable)
24-
PATH_TO_GUC="$self_path"
25-
2622
### What options are listed in postgresql.conf.sample, but don't appear
2723
### in guc.h?
2824

2925
# grab everything that looks like a setting and convert it to lower case
30-
SETTINGS=`grep' ='$PATH_TO_GUC/postgresql.conf.sample| grep -v'^#'| \
26+
SETTINGS=`grep' =' postgresql.conf.sample| grep -v'^#'| \
3127
sed -e's/^#//'| awk'{print $1}'`
3228
SETTINGS=`echo"$SETTINGS"| tr'A-Z''a-z'`
3329

@@ -40,7 +36,7 @@ for i in $SETTINGS ; do
4036
fi
4137
done
4238
if ["0"="$hidden" ];then
43-
grep -i$i$PATH_TO_GUC/guc.c> /dev/null;
39+
grep -i$i guc.c> /dev/null;
4440
if [!$?= 0 ];then
4541
echo"$i seems to be missing from guc.c";
4642
fi;
@@ -52,7 +48,7 @@ done
5248

5349
# grab everything that looks like a setting and convert it to lower case
5450

55-
SETTINGS=`grep'{ .*PGC_'$PATH_TO_GUC/guc.c| awk'{print $2}'| \
51+
SETTINGS=`grep'{ .*PGC_' guc.c| awk'{print $2}'| \
5652
sed -e's/"//g' -e's/,//'`
5753
SETTINGS=`echo"$SETTINGS"| tr'A-Z''a-z'`
5854

@@ -64,7 +60,7 @@ for i in $SETTINGS ; do
6460
fi
6561
done
6662
if ["0"="$hidden" ];then
67-
grep -i$i$PATH_TO_GUC/postgresql.conf.sample> /dev/null;
63+
grep -i$i postgresql.conf.sample> /dev/null;
6864
if [!$?= 0 ];then
6965
echo"$i seems to be missing from postgresql.conf.sample";
7066
fi

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp