Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
f20ec2e8
Commit
f20ec2e8
authored
Aug 27, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up script.
parent
1051346f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
src/backend/utils/misc/check_guc
src/backend/utils/misc/check_guc
+4
-8
No files found.
src/backend/utils/misc/check_guc
View file @
f20ec2e8
...
@@ -19,15 +19,11 @@
...
@@ -19,15 +19,11 @@
INTENTIONALLY_NOT_INCLUDED
=
"pre_auth_delay lc_messages lc_monetary
\
INTENTIONALLY_NOT_INCLUDED
=
"pre_auth_delay lc_messages lc_monetary
\
lc_time lc_numeric fixbtree"
lc_time lc_numeric fixbtree"
#self_path stolen from pg_ctl
self_path
=
`
echo
"
$0
"
|
sed
's,/[^/]*$,,'
`
# (dirname command is not portable)
PATH_TO_GUC
=
"
$self_path
"
### What options are listed in postgresql.conf.sample, but don't appear
### What options are listed in postgresql.conf.sample, but don't appear
### in guc.h?
### in guc.h?
# grab everything that looks like a setting and convert it to lower case
# grab everything that looks like a setting and convert it to lower case
SETTINGS
=
`
grep
' ='
$PATH_TO_GUC
/
postgresql.conf.sample |
grep
-v
'^# '
|
\
SETTINGS
=
`
grep
' ='
postgresql.conf.sample |
grep
-v
'^# '
|
\
sed
-e
's/^#//'
|
awk
'{print $1}'
`
sed
-e
's/^#//'
|
awk
'{print $1}'
`
SETTINGS
=
`
echo
"
$SETTINGS
"
|
tr
'A-Z'
'a-z'
`
SETTINGS
=
`
echo
"
$SETTINGS
"
|
tr
'A-Z'
'a-z'
`
...
@@ -40,7 +36,7 @@ for i in $SETTINGS ; do
...
@@ -40,7 +36,7 @@ for i in $SETTINGS ; do
fi
fi
done
done
if
[
"0"
=
"
$hidden
"
]
;
then
if
[
"0"
=
"
$hidden
"
]
;
then
grep
-i
$i
$PATH_TO_GUC
/
guc.c
>
/dev/null
;
grep
-i
$i
guc.c
>
/dev/null
;
if
[
!
$?
=
0
]
;
then
if
[
!
$?
=
0
]
;
then
echo
"
$i
seems to be missing from guc.c"
;
echo
"
$i
seems to be missing from guc.c"
;
fi
;
fi
;
...
@@ -52,7 +48,7 @@ done
...
@@ -52,7 +48,7 @@ done
# grab everything that looks like a setting and convert it to lower case
# grab everything that looks like a setting and convert it to lower case
SETTINGS
=
`
grep
'{ .*PGC_'
$PATH_TO_GUC
/
guc.c |
awk
'{print $2}'
|
\
SETTINGS
=
`
grep
'{ .*PGC_'
guc.c |
awk
'{print $2}'
|
\
sed
-e
's/"//g'
-e
's/,//'
`
sed
-e
's/"//g'
-e
's/,//'
`
SETTINGS
=
`
echo
"
$SETTINGS
"
|
tr
'A-Z'
'a-z'
`
SETTINGS
=
`
echo
"
$SETTINGS
"
|
tr
'A-Z'
'a-z'
`
...
@@ -64,7 +60,7 @@ for i in $SETTINGS ; do
...
@@ -64,7 +60,7 @@ for i in $SETTINGS ; do
fi
fi
done
done
if
[
"0"
=
"
$hidden
"
]
;
then
if
[
"0"
=
"
$hidden
"
]
;
then
grep
-i
$i
$PATH_TO_GUC
/
postgresql.conf.sample
>
/dev/null
;
grep
-i
$i
postgresql.conf.sample
>
/dev/null
;
if
[
!
$?
=
0
]
;
then
if
[
!
$?
=
0
]
;
then
echo
"
$i
seems to be missing from postgresql.conf.sample"
;
echo
"
$i
seems to be missing from postgresql.conf.sample"
;
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment