Skip to content

Commit

Permalink
Merge pull request #13 from Bearsampp/16.4
Browse files Browse the repository at this point in the history
Add PostgreSQL 16.4 and 17.0-RC1 configurations and update release properties
  • Loading branch information
jwaisner authored Sep 20, 2024
2 parents d77a503 + 59e94d7 commit 27b09e8
Show file tree
Hide file tree
Showing 10 changed files with 117 additions and 2 deletions.
14 changes: 14 additions & 0 deletions bin/postgresql16.4/bearsampp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
postgresqlVersion = "16.4"
postgresqlCtlExe = "bin/pg_ctl.exe"
postgresqlCliExe = "bin/psql.exe"
postgresqlDumpExe = "bin/pg_dump.exe"
postgresqlDumpAllExe = "bin/pg_dumpall.exe"
postgresqlConf = "data/postgresql.conf"
postgresqlUserConf = "data/pg_hba.conf"
postgresqlAltConf = "postgresql.conf.ber"
postgresqlAltUserConf = "pg_hba.conf.ber"
postgresqlPort = "5432"
postgresqlRootUser = "postgres"
postgresqlRootPwd = ""

bundleRelease = "@RELEASE_VERSION@"
5 changes: 5 additions & 0 deletions bin/postgresql16.4/init.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@ECHO OFF

%~dp0bin\initdb.exe -U postgres -A trust -E utf8 -D "%~dp0data" > "~BEARSAMPP_WIN_PATH~\logs\postgresql-install.log" 2>&1
copy /y "%~dp0postgresql.conf.ber" "%~dp0data\postgresql.conf"
copy /y "%~dp0pg_hba.conf.ber" "%~dp0data\pg_hba.conf"
3 changes: 3 additions & 0 deletions bin/postgresql16.4/pg_hba.conf.ber
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# TYPE DATABASE USER ADDRESS METHOD
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
35 changes: 35 additions & 0 deletions bin/postgresql16.4/postgresql.conf.ber
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#------------------------------------------------------------------------------
# FILE LOCATIONS
#------------------------------------------------------------------------------
data_directory = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql16.4/data'
hba_file = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql16.4/data/pg_hba.conf'
ident_file = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql16.4/data/pg_ident.conf'

#------------------------------------------------------------------------------
# CONNECTIONS AND AUTHENTICATION
#------------------------------------------------------------------------------
listen_addresses = '*'
port = 5432
max_connections = 100

#------------------------------------------------------------------------------
# RESOURCE USAGE (except WAL)
#------------------------------------------------------------------------------
shared_buffers = 32MB

#------------------------------------------------------------------------------
# ERROR REPORTING AND LOGGING
#------------------------------------------------------------------------------
log_destination = 'stderr'
logging_collector = on
log_directory = '~BEARSAMPP_LIN_PATH~/logs'
log_filename = 'postgresql.log'
log_file_mode = 0777
log_truncate_on_rotation = off
log_rotation_age = 0
log_rotation_size = 0

client_min_messages = notice
log_min_messages = warning
log_min_error_statement = error
log_min_duration_statement = -1
14 changes: 14 additions & 0 deletions bin/postgresql17.0-RC1/bearsampp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
postgresqlVersion = "17.0-RC1"
postgresqlCtlExe = "bin/pg_ctl.exe"
postgresqlCliExe = "bin/psql.exe"
postgresqlDumpExe = "bin/pg_dump.exe"
postgresqlDumpAllExe = "bin/pg_dumpall.exe"
postgresqlConf = "data/postgresql.conf"
postgresqlUserConf = "data/pg_hba.conf"
postgresqlAltConf = "postgresql.conf.ber"
postgresqlAltUserConf = "pg_hba.conf.ber"
postgresqlPort = "5432"
postgresqlRootUser = "postgres"
postgresqlRootPwd = ""

bundleRelease = "@RELEASE_VERSION@"
5 changes: 5 additions & 0 deletions bin/postgresql17.0-RC1/init.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@ECHO OFF

%~dp0bin\initdb.exe -U postgres -A trust -E utf8 -D "%~dp0data" > "~BEARSAMPP_WIN_PATH~\logs\postgresql-install.log" 2>&1
copy /y "%~dp0postgresql.conf.ber" "%~dp0data\postgresql.conf"
copy /y "%~dp0pg_hba.conf.ber" "%~dp0data\pg_hba.conf"
3 changes: 3 additions & 0 deletions bin/postgresql17.0-RC1/pg_hba.conf.ber
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# TYPE DATABASE USER ADDRESS METHOD
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
35 changes: 35 additions & 0 deletions bin/postgresql17.0-RC1/postgresql.conf.ber
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#------------------------------------------------------------------------------
# FILE LOCATIONS
#------------------------------------------------------------------------------
data_directory = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql17.0-RC1/data'
hba_file = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql17.0-RC1/data/pg_hba.conf'
ident_file = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql17.0-RC1/data/pg_ident.conf'

#------------------------------------------------------------------------------
# CONNECTIONS AND AUTHENTICATION
#------------------------------------------------------------------------------
listen_addresses = '*'
port = 5432
max_connections = 100

#------------------------------------------------------------------------------
# RESOURCE USAGE (except WAL)
#------------------------------------------------------------------------------
shared_buffers = 32MB

#------------------------------------------------------------------------------
# ERROR REPORTING AND LOGGING
#------------------------------------------------------------------------------
log_destination = 'stderr'
logging_collector = on
log_directory = '~BEARSAMPP_LIN_PATH~/logs'
log_filename = 'postgresql.log'
log_file_mode = 0777
log_truncate_on_rotation = off
log_rotation_age = 0
log_rotation_size = 0

client_min_messages = notice
log_min_messages = warning
log_min_error_statement = error
log_min_duration_statement = -1
3 changes: 1 addition & 2 deletions build.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
bundle.name = postgresql
bundle.release = 2024.4.16
bundle.release = 2024.9.18
bundle.type = bins
bundle.format = 7z

#build.path = C:/Bearsampp-build

2 changes: 2 additions & 0 deletions releases.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@
15.6 = https://github.com/Bearsampp/module-postgresql/releases/download/2024.4.16/bearsampp-postgresql-15.6-2024.4.16.7z
16.0 = https://github.com/Bearsampp/module-postgresql/releases/download/2023.10.9/bearsampp-postgresql-16.0-2023.10.9.7z
16.2 = https://github.com/Bearsampp/module-postgresql/releases/download/2024.4.16/bearsampp-postgresql-16.2-2024.4.16.7z
16.4 = https://github.com/Bearsampp/module-postgresql/releases/download/2024.9.18/bearsampp-postgresql-16.4-2024.9.18.7z
17.0-RC1 = https://github.com/Bearsampp/module-postgresql/releases/download/2024.9.18/bearsampp-postgresql-17.0-RC1-2024.9.18.7z

0 comments on commit 27b09e8

Please sign in to comment.