database/database-standalone-configuration rpm fix for postgresql.conf

This commit is contained in:
Michael James 2016-10-17 19:36:14 -05:00
parent dfd78f520d
commit da81b4cded
3 changed files with 8 additions and 7 deletions

View file

@ -181,7 +181,7 @@ commit_siblings = 5 # range 1-1000
# - Checkpoints - # - Checkpoints -
max_wal_size = 160 checkpoint_segments = 10 # in logfile segments, min 1, 16MB each
#checkpoint_timeout = 5min # range 30s-1h #checkpoint_timeout = 5min # range 30s-1h
#checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0 #checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
#checkpoint_warning = 30s # 0 disables #checkpoint_warning = 30s # 0 disables

View file

@ -61,7 +61,7 @@ listen_addresses = '*' # what IP address(es) to listen on;
# defaults to 'localhost'; use '*' for all # defaults to 'localhost'; use '*' for all
# (change requires restart) # (change requires restart)
port = 5432 # (change requires restart) port = 5432 # (change requires restart)
max_connections = 300 # (change requires restart) max_connections = 400 # (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). # connection slot, plus lock space (see max_locks_per_transaction).
#superuser_reserved_connections = 3 # (change requires restart) #superuser_reserved_connections = 3 # (change requires restart)
@ -181,7 +181,7 @@ commit_siblings = 5 # range 1-1000
# - Checkpoints - # - Checkpoints -
max_wal_size = 160 checkpoint_segments = 10 # in logfile segments, min 1, 16MB each
#checkpoint_timeout = 5min # range 30s-1h #checkpoint_timeout = 5min # range 30s-1h
#checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0 #checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
#checkpoint_warning = 30s # 0 disables #checkpoint_warning = 30s # 0 disables
@ -414,7 +414,7 @@ log_line_prefix = '%t %x %d : %h : ' # special values:
#log_temp_files = -1 # log temporary files equal or larger #log_temp_files = -1 # log temporary files equal or larger
# than the specified size in kilobytes; # than the specified size in kilobytes;
# -1 disables, 0 logs all temp files # -1 disables, 0 logs all temp files
#log_timezone = 'US/Central' log_timezone = 'UTC'
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View file

@ -22,6 +22,7 @@ Packager: %{_build_site}
AutoReq: no AutoReq: no
Provides: awips2-database Provides: awips2-database
Provides: awips2-static-user Provides: awips2-static-user
Requires: libpng
Requires: awips2-postgresql Requires: awips2-postgresql
Requires: awips2-psql Requires: awips2-psql
Requires: awips2-database-configuration Requires: awips2-database-configuration
@ -271,9 +272,9 @@ fi
execute_initial_sql_script ${SQL_SHARE_DIR}/initial_setup_server.sql execute_initial_sql_script ${SQL_SHARE_DIR}/initial_setup_server.sql
/awips2/psql/bin/psql -U ${AWIPS_DEFAULT_USER} -d metadata -c "CREATE EXTENSION postgis;" /awips2/psql/bin/psql -U awips -d metadata -c "CREATE EXTENSION postgis;"
/awips2/psql/bin/psql -U ${AWIPS_DEFAULT_USER} -d metadata -c "CREATE EXTENSION postgis_topology;" /awips2/psql/bin/psql -U awips -d metadata -c "CREATE EXTENSION postgis_topology;"
execute_psql_sql_script /awips2/postgresql/share/contrib/postgis-2.2/legacy.sql metadata execute_psql_sql_script /awips2/postgresql/share/contrib/postgis-2.0/legacy.sql metadata
execute_psql_sql_script ${SQL_SHARE_DIR}/permissions.sql metadata execute_psql_sql_script ${SQL_SHARE_DIR}/permissions.sql metadata
execute_psql_sql_script ${SQL_SHARE_DIR}/fxatext.sql metadata execute_psql_sql_script ${SQL_SHARE_DIR}/fxatext.sql metadata