Skip to content

Commit

Permalink
user/postgresql17: asd
Browse files Browse the repository at this point in the history
  • Loading branch information
nekopsykose committed Oct 3, 2024
1 parent 645d009 commit cb985af
Show file tree
Hide file tree
Showing 77 changed files with 562 additions and 4 deletions.
2 changes: 1 addition & 1 deletion user/libecpg
2 changes: 1 addition & 1 deletion user/libecpg-devel
2 changes: 1 addition & 1 deletion user/libpq
2 changes: 1 addition & 1 deletion user/libpq-devel
1 change: 1 addition & 0 deletions user/postgresql-postgresql17-default
1 change: 1 addition & 0 deletions user/postgresql-postgresql17-oid2name-default
1 change: 1 addition & 0 deletions user/postgresql-postgresql17-vacuumlo-default
1 change: 1 addition & 0 deletions user/postgresql17-contrib
1 change: 1 addition & 0 deletions user/postgresql17-contrib-adminpack
1 change: 1 addition & 0 deletions user/postgresql17-contrib-amcheck
1 change: 1 addition & 0 deletions user/postgresql17-contrib-auth_delay
1 change: 1 addition & 0 deletions user/postgresql17-contrib-auto_explain
1 change: 1 addition & 0 deletions user/postgresql17-contrib-basebackup_to_shell
1 change: 1 addition & 0 deletions user/postgresql17-contrib-basic_archive
1 change: 1 addition & 0 deletions user/postgresql17-contrib-bloom
1 change: 1 addition & 0 deletions user/postgresql17-contrib-bool_plperl
1 change: 1 addition & 0 deletions user/postgresql17-contrib-btree_gin
1 change: 1 addition & 0 deletions user/postgresql17-contrib-btree_gist
1 change: 1 addition & 0 deletions user/postgresql17-contrib-citext
1 change: 1 addition & 0 deletions user/postgresql17-contrib-cube
1 change: 1 addition & 0 deletions user/postgresql17-contrib-dblink
1 change: 1 addition & 0 deletions user/postgresql17-contrib-dict_int
1 change: 1 addition & 0 deletions user/postgresql17-contrib-dict_xsyn
1 change: 1 addition & 0 deletions user/postgresql17-contrib-earthdistance
1 change: 1 addition & 0 deletions user/postgresql17-contrib-file_fdw
1 change: 1 addition & 0 deletions user/postgresql17-contrib-fuzzystrmatch
1 change: 1 addition & 0 deletions user/postgresql17-contrib-hstore
1 change: 1 addition & 0 deletions user/postgresql17-contrib-hstore_plperl
1 change: 1 addition & 0 deletions user/postgresql17-contrib-hstore_plpython
1 change: 1 addition & 0 deletions user/postgresql17-contrib-intagg
1 change: 1 addition & 0 deletions user/postgresql17-contrib-intarray
1 change: 1 addition & 0 deletions user/postgresql17-contrib-isn
1 change: 1 addition & 0 deletions user/postgresql17-contrib-jsonb_plperl
1 change: 1 addition & 0 deletions user/postgresql17-contrib-jsonb_plpython
1 change: 1 addition & 0 deletions user/postgresql17-contrib-lo
1 change: 1 addition & 0 deletions user/postgresql17-contrib-ltree
1 change: 1 addition & 0 deletions user/postgresql17-contrib-ltree_plpython
1 change: 1 addition & 0 deletions user/postgresql17-contrib-oid2name
1 change: 1 addition & 0 deletions user/postgresql17-contrib-old_snapshot
1 change: 1 addition & 0 deletions user/postgresql17-contrib-pageinspect
1 change: 1 addition & 0 deletions user/postgresql17-contrib-passwordcheck
1 change: 1 addition & 0 deletions user/postgresql17-contrib-pg_buffercache
1 change: 1 addition & 0 deletions user/postgresql17-contrib-pg_freespacemap
1 change: 1 addition & 0 deletions user/postgresql17-contrib-pg_prewarm
1 change: 1 addition & 0 deletions user/postgresql17-contrib-pg_stat_statements
1 change: 1 addition & 0 deletions user/postgresql17-contrib-pg_surgery
1 change: 1 addition & 0 deletions user/postgresql17-contrib-pg_trgm
1 change: 1 addition & 0 deletions user/postgresql17-contrib-pg_visibility
1 change: 1 addition & 0 deletions user/postgresql17-contrib-pg_walinspect
1 change: 1 addition & 0 deletions user/postgresql17-contrib-pgcrypto
1 change: 1 addition & 0 deletions user/postgresql17-contrib-pgrowlocks
1 change: 1 addition & 0 deletions user/postgresql17-contrib-pgstattuple
1 change: 1 addition & 0 deletions user/postgresql17-contrib-postgres_fdw
1 change: 1 addition & 0 deletions user/postgresql17-contrib-seg
1 change: 1 addition & 0 deletions user/postgresql17-contrib-spi
1 change: 1 addition & 0 deletions user/postgresql17-contrib-sslinfo
1 change: 1 addition & 0 deletions user/postgresql17-contrib-tablefunc
1 change: 1 addition & 0 deletions user/postgresql17-contrib-tcn
1 change: 1 addition & 0 deletions user/postgresql17-contrib-test_decoding
1 change: 1 addition & 0 deletions user/postgresql17-contrib-tsm_system_rows
1 change: 1 addition & 0 deletions user/postgresql17-contrib-tsm_system_time
1 change: 1 addition & 0 deletions user/postgresql17-contrib-unaccent
1 change: 1 addition & 0 deletions user/postgresql17-contrib-uuid-ossp
1 change: 1 addition & 0 deletions user/postgresql17-contrib-vacuumlo
1 change: 1 addition & 0 deletions user/postgresql17-contrib-xml2
1 change: 1 addition & 0 deletions user/postgresql17-devel
1 change: 1 addition & 0 deletions user/postgresql17-plperl
1 change: 1 addition & 0 deletions user/postgresql17-plpython
1 change: 1 addition & 0 deletions user/postgresql17-pltcl
13 changes: 13 additions & 0 deletions user/postgresql17/files/pltcl_create_tables.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- Create tables needed for PL/Tcl autoloading. This script should be run by
-- the database administrator only.
--
-- Statements in this script are extracted from pltcl_loadmod script.
--
-- Author: G.J.R. Timmer
-- Date: 2017-01-28

create table pltcl_modules (modname name, modseq int2, modsrc text);
create index pltcl_modules_i on pltcl_modules using btree (modname name_ops);

create table pltcl_modfuncs (funcname name, modname name);
create index pltcl_modfuncs_i on pltcl_modfuncs using hash (funcname name_ops);
9 changes: 9 additions & 0 deletions user/postgresql17/files/postgresql16
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# postgresql service

type = process
command = /usr/libexec/postgresql16/postgres -D /var/lib/postgresql
depends-on = network.target
smooth-recovery = true
logfile = /var/log/postgresql.log
run-as = _postgres
stop-timeout = 60.0
16 changes: 16 additions & 0 deletions user/postgresql17/patches/disable-html-docs.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
we don't care about the html docs, since postgres has a fantastic online
reference already

keep only the manpages for local convenience :-)
--
--- a/doc/src/sgml/meson.build
+++ b/doc/src/sgml/meson.build
@@ -134,7 +134,7 @@
#
# Full documentation as html, text
#
-if docs_dep.found()
+if false
html = custom_target('html',
input: ['stylesheet.xsl', postgres_full_xml],
output: 'html',
33 changes: 33 additions & 0 deletions user/postgresql17/patches/dont-use-locale-a-on-musl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From: Jakub Jirutka <[email protected]>
Date: Wed, 03 Aug 2022 20:40:33 +0200
Subject: [PATCH] Don't generate collations based on locale(1)

When the PostgreSQL cluster is initialized (using initdb(1)) or the
DB administrator calls `pg_import_system_collations()` directly, this
function creates COLLATIONs in the system catalog (pg_collations).
If the locale(1) command is available, this function creates COLLATIONs
based on the `locale -a` output.

The locale(1) command is normally not available on Alpine Linux, so it
does nothing and only the default and ICU-based COLLATIONs are created.
However, there's a musl-locales package that provides locale(1), but it
doesn't implement any collations. This package just provides locale
translations. So if the user happens to have locale(1) installed and they
initialize the cluster or call `pg_import_system_collations()`, they end
up with dozens of libc-based COLLATIONs in the system catalog that
actually do not work! They will all behave like "C", because musl libc
doesn't implement locales.

Patch-Source: https://git.alpinelinux.org/aports/tree/main/postgresql16/dont-use-locale-a-on-musl.patch

--- a/src/backend/commands/collationcmds.c
+++ b/src/backend/commands/collationcmds.c
@@ -579,7 +579,7 @@


/* will we use "locale -a" in pg_import_system_collations? */
-#if !defined(WIN32)
+#if !defined(WIN32) && defined(__GLIBC__) // XXX-Patched
#define READ_LOCALE_A_OUTPUT
#endif

14 changes: 14 additions & 0 deletions user/postgresql17/patches/initdb-no-pg_ctl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -3259,9 +3259,7 @@
/* translator: This is a placeholder in a shell command. */
appendPQExpBuffer(start_db_cmd, " -l %s start", _("logfile"));

- printf(_("\nSuccess. You can now start the database server using:\n\n"
- " %s\n\n"),
- start_db_cmd->data);
+ printf(_("\nSuccess.\n\n"));

destroyPQExpBuffer(start_db_cmd);
}
35 changes: 35 additions & 0 deletions user/postgresql17/patches/remove-libecpg_compat.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Nothing ever depended on libecpg_compat.so.3 in Fedora, so don't install
it now, at least till somebody explicitly requests that.

Patch-Source: https://src.fedoraproject.org/rpms/libecpg/blob/f35/f/libecpg-10.5-no-compat-lib.patch
(updated for meson)

--- a/src/interfaces/ecpg/test/meson.build
+++ b/src/interfaces/ecpg/test/meson.build
@@ -29,7 +29,7 @@
ecpg_test_exec_kw = {
'dependencies': [frontend_code, libpq],
'include_directories': [ecpg_inc],
- 'link_with': [ecpglib_so, ecpg_compat_so, ecpg_pgtypes_so],
+ 'link_with': [ecpglib_so, ecpg_pgtypes_so],
'build_by_default': false,
'install': false,
}
@@ -52,7 +52,6 @@

ecpg_test_dependencies = []

-subdir('compat_informix')
subdir('compat_oracle')
subdir('connect')
subdir('pgtypeslib')
--- a/src/interfaces/ecpg/meson.build
+++ b/src/interfaces/ecpg/meson.build
@@ -5,7 +5,6 @@
subdir('include')
subdir('pgtypeslib')
subdir('ecpglib')
-subdir('compatlib')
subdir('preproc')

alias_target('ecpg', ecpg_targets)
Loading

0 comments on commit cb985af

Please sign in to comment.