mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Remove useless whitespace at end of lines
This commit is contained in:
@@ -37,5 +37,5 @@ endif
|
||||
|
||||
# Note: guc-file.c is not deleted by 'make clean',
|
||||
# since we want to ship it in distribution tarballs.
|
||||
clean:
|
||||
clean:
|
||||
@rm -f lex.yy.c
|
||||
|
@@ -4,7 +4,7 @@
|
||||
## in postgresql.conf.sample:
|
||||
## 1) the valid config settings may be preceded by a '#', but NOT '# '
|
||||
## (we use this to skip comments)
|
||||
## 2) the valid config settings will be followed immediately by ' ='
|
||||
## 2) the valid config settings will be followed immediately by ' ='
|
||||
## (at least one space preceding the '=')
|
||||
## in guc.c:
|
||||
## 3) the options have PGC_ on the same line as the option
|
||||
@@ -14,7 +14,7 @@
|
||||
## 1) Don't know what to do with TRANSACTION ISOLATION LEVEL
|
||||
|
||||
## if an option is valid but shows up in only one file (guc.c but not
|
||||
## postgresql.conf.sample), it should be listed here so that it
|
||||
## postgresql.conf.sample), it should be listed here so that it
|
||||
## can be ignored
|
||||
INTENTIONALLY_NOT_INCLUDED="autocommit debug_deadlocks \
|
||||
is_superuser lc_collate lc_ctype lc_messages lc_monetary lc_numeric lc_time \
|
||||
@@ -23,35 +23,35 @@ session_authorization trace_lock_oidmin trace_lock_table trace_locks trace_lwloc
|
||||
trace_notify trace_userlocks transaction_isolation transaction_read_only \
|
||||
zero_damaged_pages"
|
||||
|
||||
### 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.c?
|
||||
|
||||
# grab everything that looks like a setting and convert it to lower case
|
||||
SETTINGS=`grep ' =' postgresql.conf.sample |
|
||||
SETTINGS=`grep ' =' postgresql.conf.sample |
|
||||
grep -v '^# ' | # strip comments
|
||||
sed -e 's/^#//' |
|
||||
sed -e 's/^#//' |
|
||||
awk '{print $1}'`
|
||||
|
||||
SETTINGS=`echo "$SETTINGS" | tr 'A-Z' 'a-z'`
|
||||
|
||||
for i in $SETTINGS ; do
|
||||
for i in $SETTINGS ; do
|
||||
hidden=0
|
||||
## it sure would be nice to replace this with an sql "not in" statement
|
||||
## it doesn't seem to make sense to have things in .sample and not in guc.c
|
||||
# for hidethis in $INTENTIONALLY_NOT_INCLUDED ; do
|
||||
# if [ "$hidethis" = "$i" ] ; then
|
||||
# if [ "$hidethis" = "$i" ] ; then
|
||||
# hidden=1
|
||||
# fi
|
||||
# done
|
||||
if [ "$hidden" -eq 0 ] ; then
|
||||
grep -i '"'$i'"' guc.c > /dev/null
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "$i seems to be missing from guc.c";
|
||||
fi;
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "$i seems to be missing from guc.c";
|
||||
fi;
|
||||
fi
|
||||
done
|
||||
|
||||
### What options are listed in guc.c, but don't appear
|
||||
### What options are listed in guc.c, but don't appear
|
||||
### in postgresql.conf.sample?
|
||||
|
||||
# grab everything that looks like a setting and convert it to lower case
|
||||
|
@@ -463,9 +463,9 @@ ParseConfigFile(const char *config_file, const char *calling_file,
|
||||
|
||||
/* now we must have the option value */
|
||||
if (token != GUC_ID &&
|
||||
token != GUC_STRING &&
|
||||
token != GUC_INTEGER &&
|
||||
token != GUC_REAL &&
|
||||
token != GUC_STRING &&
|
||||
token != GUC_INTEGER &&
|
||||
token != GUC_REAL &&
|
||||
token != GUC_UNQUOTED_STRING)
|
||||
goto parse_error;
|
||||
if (token == GUC_STRING) /* strip quotes and escapes */
|
||||
@@ -573,7 +573,7 @@ ParseConfigFile(const char *config_file, const char *calling_file,
|
||||
else
|
||||
ereport(elevel,
|
||||
(errcode(ERRCODE_SYNTAX_ERROR),
|
||||
errmsg("syntax error in file \"%s\" line %u, near token \"%s\"",
|
||||
errmsg("syntax error in file \"%s\" line %u, near token \"%s\"",
|
||||
config_file, ConfigFileLineno, yytext)));
|
||||
OK = false;
|
||||
|
||||
|
@@ -62,7 +62,7 @@
|
||||
# (change requires restart)
|
||||
#port = 5432 # (change requires restart)
|
||||
#max_connections = 100 # (change requires restart)
|
||||
# Note: Increasing max_connections costs ~400 bytes of shared memory per
|
||||
# Note: Increasing max_connections costs ~400 bytes of shared memory per
|
||||
# connection slot, plus lock space (see max_locks_per_transaction).
|
||||
#superuser_reserved_connections = 3 # (change requires restart)
|
||||
#unix_socket_directory = '' # (change requires restart)
|
||||
@@ -154,7 +154,7 @@
|
||||
# (change requires restart)
|
||||
#fsync = on # turns forced synchronization on or off
|
||||
#synchronous_commit = on # immediate fsync at commit
|
||||
#wal_sync_method = fsync # the default is the first option
|
||||
#wal_sync_method = fsync # the default is the first option
|
||||
# supported by the operating system:
|
||||
# open_datasync
|
||||
# fdatasync
|
||||
@@ -246,7 +246,7 @@
|
||||
#constraint_exclusion = partition # on, off, or partition
|
||||
#cursor_tuple_fraction = 0.1 # range 0.0-1.0
|
||||
#from_collapse_limit = 8
|
||||
#join_collapse_limit = 8 # 1 disables collapsing of explicit
|
||||
#join_collapse_limit = 8 # 1 disables collapsing of explicit
|
||||
# JOIN clauses
|
||||
|
||||
|
||||
@@ -284,7 +284,7 @@
|
||||
# in all cases.
|
||||
#log_rotation_age = 1d # Automatic rotation of logfiles will
|
||||
# happen after that time. 0 disables.
|
||||
#log_rotation_size = 10MB # Automatic rotation of logfiles will
|
||||
#log_rotation_size = 10MB # Automatic rotation of logfiles will
|
||||
# happen after that much log output.
|
||||
# 0 disables.
|
||||
|
||||
@@ -412,7 +412,7 @@
|
||||
# AUTOVACUUM PARAMETERS
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#autovacuum = on # Enable autovacuum subprocess? 'on'
|
||||
#autovacuum = on # Enable autovacuum subprocess? 'on'
|
||||
# requires track_counts to also be on.
|
||||
#log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
|
||||
# their durations, > 0 logs only
|
||||
@@ -423,7 +423,7 @@
|
||||
#autovacuum_naptime = 1min # time between autovacuum runs
|
||||
#autovacuum_vacuum_threshold = 50 # min number of row updates before
|
||||
# vacuum
|
||||
#autovacuum_analyze_threshold = 50 # min number of row updates before
|
||||
#autovacuum_analyze_threshold = 50 # min number of row updates before
|
||||
# analyze
|
||||
#autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
|
||||
#autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
|
||||
|
Reference in New Issue
Block a user