diff --git a/bin/postgresql14.24/bearsampp.conf b/bin/postgresql14.24/bearsampp.conf new file mode 100644 index 0000000..f915084 --- /dev/null +++ b/bin/postgresql14.24/bearsampp.conf @@ -0,0 +1,14 @@ +postgresqlVersion = "14.24" +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@" diff --git a/bin/postgresql14.24/init.bat b/bin/postgresql14.24/init.bat new file mode 100644 index 0000000..f0acb2d --- /dev/null +++ b/bin/postgresql14.24/init.bat @@ -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" diff --git a/bin/postgresql14.24/pg_hba.conf.ber b/bin/postgresql14.24/pg_hba.conf.ber new file mode 100644 index 0000000..29b8f8b --- /dev/null +++ b/bin/postgresql14.24/pg_hba.conf.ber @@ -0,0 +1,3 @@ +# TYPE DATABASE USER ADDRESS METHOD + host all all 127.0.0.1/32 trust + host all all ::1/128 trust diff --git a/bin/postgresql14.24/postgresql.conf.ber b/bin/postgresql14.24/postgresql.conf.ber new file mode 100644 index 0000000..c8c5b27 --- /dev/null +++ b/bin/postgresql14.24/postgresql.conf.ber @@ -0,0 +1,35 @@ +#------------------------------------------------------------------------------ +# FILE LOCATIONS +#------------------------------------------------------------------------------ +data_directory = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql14.24/data' +hba_file = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql14.24/data/pg_hba.conf' +ident_file = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql14.24/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 diff --git a/bin/postgresql15.19/bearsampp.conf b/bin/postgresql15.19/bearsampp.conf new file mode 100644 index 0000000..fa00ebf --- /dev/null +++ b/bin/postgresql15.19/bearsampp.conf @@ -0,0 +1,14 @@ +postgresqlVersion = "15.19" +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@" diff --git a/bin/postgresql15.19/init.bat b/bin/postgresql15.19/init.bat new file mode 100644 index 0000000..f0acb2d --- /dev/null +++ b/bin/postgresql15.19/init.bat @@ -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" diff --git a/bin/postgresql15.19/pg_hba.conf.ber b/bin/postgresql15.19/pg_hba.conf.ber new file mode 100644 index 0000000..29b8f8b --- /dev/null +++ b/bin/postgresql15.19/pg_hba.conf.ber @@ -0,0 +1,3 @@ +# TYPE DATABASE USER ADDRESS METHOD + host all all 127.0.0.1/32 trust + host all all ::1/128 trust diff --git a/bin/postgresql15.19/postgresql.conf.ber b/bin/postgresql15.19/postgresql.conf.ber new file mode 100644 index 0000000..ce85e16 --- /dev/null +++ b/bin/postgresql15.19/postgresql.conf.ber @@ -0,0 +1,35 @@ +#------------------------------------------------------------------------------ +# FILE LOCATIONS +#------------------------------------------------------------------------------ +data_directory = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql15.19/data' +hba_file = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql15.19/data/pg_hba.conf' +ident_file = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql15.19/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 diff --git a/bin/postgresql16.15/bearsampp.conf b/bin/postgresql16.15/bearsampp.conf new file mode 100644 index 0000000..e600961 --- /dev/null +++ b/bin/postgresql16.15/bearsampp.conf @@ -0,0 +1,14 @@ +postgresqlVersion = "16.15" +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@" diff --git a/bin/postgresql16.15/init.bat b/bin/postgresql16.15/init.bat new file mode 100644 index 0000000..f0acb2d --- /dev/null +++ b/bin/postgresql16.15/init.bat @@ -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" diff --git a/bin/postgresql16.15/pg_hba.conf.ber b/bin/postgresql16.15/pg_hba.conf.ber new file mode 100644 index 0000000..29b8f8b --- /dev/null +++ b/bin/postgresql16.15/pg_hba.conf.ber @@ -0,0 +1,3 @@ +# TYPE DATABASE USER ADDRESS METHOD + host all all 127.0.0.1/32 trust + host all all ::1/128 trust diff --git a/bin/postgresql16.15/postgresql.conf.ber b/bin/postgresql16.15/postgresql.conf.ber new file mode 100644 index 0000000..44eb20c --- /dev/null +++ b/bin/postgresql16.15/postgresql.conf.ber @@ -0,0 +1,35 @@ +#------------------------------------------------------------------------------ +# FILE LOCATIONS +#------------------------------------------------------------------------------ +data_directory = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql16.15/data' +hba_file = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql16.15/data/pg_hba.conf' +ident_file = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql16.15/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 diff --git a/bin/postgresql17.11/bearsampp.conf b/bin/postgresql17.11/bearsampp.conf new file mode 100644 index 0000000..d38b416 --- /dev/null +++ b/bin/postgresql17.11/bearsampp.conf @@ -0,0 +1,14 @@ +postgresqlVersion = "17.11" +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@" diff --git a/bin/postgresql17.11/init.bat b/bin/postgresql17.11/init.bat new file mode 100644 index 0000000..f0acb2d --- /dev/null +++ b/bin/postgresql17.11/init.bat @@ -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" diff --git a/bin/postgresql17.11/pg_hba.conf.ber b/bin/postgresql17.11/pg_hba.conf.ber new file mode 100644 index 0000000..29b8f8b --- /dev/null +++ b/bin/postgresql17.11/pg_hba.conf.ber @@ -0,0 +1,3 @@ +# TYPE DATABASE USER ADDRESS METHOD + host all all 127.0.0.1/32 trust + host all all ::1/128 trust diff --git a/bin/postgresql17.11/postgresql.conf.ber b/bin/postgresql17.11/postgresql.conf.ber new file mode 100644 index 0000000..92d3f25 --- /dev/null +++ b/bin/postgresql17.11/postgresql.conf.ber @@ -0,0 +1,35 @@ +#------------------------------------------------------------------------------ +# FILE LOCATIONS +#------------------------------------------------------------------------------ +data_directory = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql17.11/data' +hba_file = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql17.11/data/pg_hba.conf' +ident_file = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql17.11/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 diff --git a/bin/postgresql18.6/bearsampp.conf b/bin/postgresql18.6/bearsampp.conf new file mode 100644 index 0000000..591ff46 --- /dev/null +++ b/bin/postgresql18.6/bearsampp.conf @@ -0,0 +1,14 @@ +postgresqlVersion = "18.6" +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@" diff --git a/bin/postgresql18.6/init.bat b/bin/postgresql18.6/init.bat new file mode 100644 index 0000000..f0acb2d --- /dev/null +++ b/bin/postgresql18.6/init.bat @@ -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" diff --git a/bin/postgresql18.6/pg_hba.conf.ber b/bin/postgresql18.6/pg_hba.conf.ber new file mode 100644 index 0000000..29b8f8b --- /dev/null +++ b/bin/postgresql18.6/pg_hba.conf.ber @@ -0,0 +1,3 @@ +# TYPE DATABASE USER ADDRESS METHOD + host all all 127.0.0.1/32 trust + host all all ::1/128 trust diff --git a/bin/postgresql18.6/postgresql.conf.ber b/bin/postgresql18.6/postgresql.conf.ber new file mode 100644 index 0000000..0fdf988 --- /dev/null +++ b/bin/postgresql18.6/postgresql.conf.ber @@ -0,0 +1,35 @@ +#------------------------------------------------------------------------------ +# FILE LOCATIONS +#------------------------------------------------------------------------------ +data_directory = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql18.6/data' +hba_file = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql18.6/data/pg_hba.conf' +ident_file = '~BEARSAMPP_LIN_PATH~/bin/postgresql/postgresql18.6/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 diff --git a/build.gradle b/build.gradle index cf75044..f8d8d6b 100644 --- a/build.gradle +++ b/build.gradle @@ -101,8 +101,18 @@ def fetchModulesUntouchedProperties() { def getPostgreSQLDownloadUrl(String version) { // First, try to get from modules-untouched def untouchedProps = fetchModulesUntouchedProperties() - if (untouchedProps && untouchedProps.containsKey(version)) { - return untouchedProps.getProperty(version) + if (untouchedProps) { + // Prefer the suffixed source key (e.g. 18.6-1) when present; the release asset + // points to the actual binaries while the build version stays unsuffixed (18.6). + // Use string concatenation (not interpolation) to get a real String: a GString + // always fails Properties.containsKey() equality checks. + def suffixedVersion = version + '-1' + if (untouchedProps.containsKey(suffixedVersion)) { + return untouchedProps.getProperty(suffixedVersion) + } + if (untouchedProps.containsKey(version)) { + return untouchedProps.getProperty(version) + } } // Fallback: construct standard URL format diff --git a/build.properties b/build.properties index cf76225..382590f 100644 --- a/build.properties +++ b/build.properties @@ -1,5 +1,5 @@ bundle.name = postgresql -bundle.release = 2025.6.2 +bundle.release = 2026.8.28 bundle.type = bins bundle.format = 7z diff --git a/releases.properties b/releases.properties index 3a64d8c..fd3f6a8 100644 --- a/releases.properties +++ b/releases.properties @@ -1,6 +1,8 @@ +18.6 = https://github.com/Bearsampp/module-postgresql/releases/download/2026.8.28/bearsampp-postgresql-18.6-2026.8.28.7z 18.4 = https://github.com/Bearsampp/module-postgresql/releases/download/2026.6.2/bearsampp-postgresql-18.4-2025.6.2.7z 18.3 = https://github.com/Bearsampp/module-postgresql/releases/download/2026.3.8/bearsampp-postgresql-18.3-2025.3.8.7z 18.1 = https://github.com/Bearsampp/module-postgresql/releases/download/2025.11.22/bearsampp-postgresql-18.1-2025.7.2.7z +17.11 = https://github.com/Bearsampp/module-postgresql/releases/download/2026.8.28/bearsampp-postgresql-17.11-2026.8.28.7z 17.10 = https://github.com/Bearsampp/module-postgresql/releases/download/2026.6.2/bearsampp-postgresql-17.10-2025.6.2.7z 17.9 = https://github.com/Bearsampp/module-postgresql/releases/download/2026.3.8/bearsampp-postgresql-17.9-2025.3.8.7z 17.7 = https://github.com/Bearsampp/module-postgresql/releases/download/2025.11.22/bearsampp-postgresql-17.7-2025.7.2.7z @@ -9,6 +11,7 @@ 17.2.3 = https://github.com/Bearsampp/module-postgresql/releases/download/2025.2.13/bearsampp-postgresql-17.2.3-2025.2.13.7z 17.2.1 = https://github.com/Bearsampp/module-postgresql/releases/download/2024.12.1/bearsampp-postgresql-17.2.1-2024.12.1.7z 17.0-RC1 = https://github.com/Bearsampp/module-postgresql/releases/download/2024.9.18/bearsampp-postgresql-17.0-RC1-2024.9.18.7z +16.15 = https://github.com/Bearsampp/module-postgresql/releases/download/2026.8.28/bearsampp-postgresql-16.15-2026.8.28.7z 16.14 = https://github.com/Bearsampp/module-postgresql/releases/download/2026.6.2/bearsampp-postgresql-16.14-2025.6.2.7z 16.13 = https://github.com/Bearsampp/module-postgresql/releases/download/2026.3.8/bearsampp-postgresql-16.13-2025.3.8.7z 16.11 = https://github.com/Bearsampp/module-postgresql/releases/download/2025.11.22/bearsampp-postgresql-16.11-2025.7.2.7z @@ -17,6 +20,7 @@ 16.4 = https://github.com/Bearsampp/module-postgresql/releases/download/2024.9.18/bearsampp-postgresql-16.4-2024.9.18.7z 16.2 = https://github.com/Bearsampp/module-postgresql/releases/download/2024.4.16/bearsampp-postgresql-16.2-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 +15.19 = https://github.com/Bearsampp/module-postgresql/releases/download/2026.8.28/bearsampp-postgresql-15.19-2026.8.28.7z 15.18 = https://github.com/Bearsampp/module-postgresql/releases/download/2026.6.2/bearsampp-postgresql-15.18-2025.6.2.7z 15.17 = https://github.com/Bearsampp/module-postgresql/releases/download/2026.3.8/bearsampp-postgresql-15.17-2025.3.8.7z 15.15 = https://github.com/Bearsampp/module-postgresql/releases/download/2025.11.22/bearsampp-postgresql-15.15-2025.7.2.7z @@ -27,6 +31,7 @@ 15.3 = https://github.com/Bearsampp/module-postgresql/releases/download/2023.7.23/bearsampp-postgresql-15.3-2023.7.23.7z 15.2 = https://github.com/Bearsampp/module-postgresql/releases/download/2023.4.20/bearsampp-postgresql-15.2-2023.4.24.7z 15.0 = https://github.com/Bearsampp/module-postgresql/releases/download/2022.10.28/bearsampp-postgresql-15.0-2022.10.28.7z +14.24 = https://github.com/Bearsampp/module-postgresql/releases/download/2026.8.28/bearsampp-postgresql-14.24-2026.8.28.7z 14.23 = https://github.com/Bearsampp/module-postgresql/releases/download/2026.6.2/bearsampp-postgresql-14.23-2025.6.2.7z 14.22 = https://github.com/Bearsampp/module-postgresql/releases/download/2026.3.8/bearsampp-postgresql-14.22-2025.3.8.7z 14.20 = https://github.com/Bearsampp/module-postgresql/releases/download/2025.11.22/bearsampp-postgresql-14.20-2025.7.2.7z