Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
fdb6134
Add debian for PostgreSQL 18
reshke Jun 17, 2025
36f5761
Apply debian patch series
reshke Jun 17, 2025
d9b99b0
Lower postgresql-common and remove tzdata restriction
reshke Jun 26, 2025
72d50cd
Remove stop version
reshke Jun 17, 2025
2ae2c06
Yandex build infra commit
Feb 26, 2024
9a1f217
Untrust all contrib
Dec 26, 2023
74fd8a7
Disallow cancelation of syncronous commit V1
x4m Oct 27, 2020
7b43c5b
Mdb-admin patch and regression tests
reshke Apr 13, 2021
9300f63
MDB replication role patch
x4m Dec 6, 2020
0e6583b
Change storage class for mdb_replication utilities
Dec 11, 2024
1b7ee62
Disable security test
reshke Jun 27, 2025
6a4ed0c
Disable tests with DEB_BUILD_OPTIONS
reshke Jun 28, 2025
a0fa7ec
Role mdb_superuser: feature and regress testsing
reshke Feb 21, 2023
02b91a6
provide [mdb -postgresql] restict grant roles in YC[MDB-16990]
reshke Feb 22, 2022
98b85cf
MDB-16955 : disallow to kill repl mon in cloud
reshke May 11, 2022
946a8f9
Demonstrate and fix lock of all SQL queries by pg_stat_statements
Sep 12, 2022
8fc0b56
MDB-21297: forbit usage of COPY TO PROGRAMM and COPY FROM PROGRAMM to…
reshke Jan 18, 2023
7722d81
Implement mdb-locales patch
usernamedt Feb 13, 2023
bdcd806
MDB-23247: startup param for auth passthrough under unpriviledged user
reshke May 11, 2023
eec08e1
Add mdb changelog
reshke Jul 5, 2023
46228a8
Restrict DROP DATABASE to superuser only
May 28, 2024
299e850
[MDB-28474] Increate readaheadchunk for XlogPageReader()
x4m Jul 8, 2024
fedd54f
Use fadvise to prefetch WAL in xlogrecovery
Jun 23, 2022
4d5c86d
parameter max_log_size to truncate logs
diPhantxm Sep 9, 2024
fee9ed1
Pull request #201: bump llvm to 18 17.0
Nov 2, 2024
e7f92b9
Support FORCE option in analyze command
diPhantxm Aug 26, 2024
bc7c1f7
truncate query to be logged in simple query
diPhantxm Nov 12, 2024
e507a8f
Add CI
reshke Jan 16, 2025
4a64440
MDB-32132: fix grantor selection for mdb_superuser (#6)
reshke Jan 17, 2025
4ad9183
Do not use schema public in mdb_superuser regression tests (#7)
reshke Jan 21, 2025
8ae34ca
Introduce mdb_read_all_data/mdb_write_all_data
reshke Feb 7, 2025
8629d1c
Allow usage on schema for mdb_read_all_data (#23)
reshke Apr 26, 2025
2185b97
Add check for mdb_service_auth role
reshke Apr 26, 2025
5249b90
GUCify NUM_BUFFER_PARTITIONS
x4m Nov 13, 2024
0b1136a
deb fix
reshke Aug 6, 2025
2cab50b
pg_stat_statements.c: cancelable qtext_load_file (#45)
rkhapov Oct 2, 2025
b8f1db8
Allow canceling service queries.
reshke Dec 5, 2025
f86c18d
v6 of bt_page_items pretty-print
reshke Jan 18, 2026
a189c4d
Add archive_mode=shared for coordinated WAL archiving
x4m Feb 10, 2026
505d0d5
Mark ancestor timeline WAL segments as archived
x4m Feb 10, 2026
052740b
Optimize ProcessArchivalReport to avoid directory scans
x4m Feb 11, 2026
be6ab29
Fuse shared archive with ycmdb.shared_archive
x4m Feb 12, 2026
381e736
REASSIGN OWNED: ignore subscriptions in other databases
alvherre Jan 1, 2026
a4663c0
Revert SSLKEYLOGFILE feature
reshke Apr 15, 2026
18aebd7
Fix two bugs in archive_mode=shared on standby
x4m Apr 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/regress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Docker Image CI

on:
push:
branches: [ "MDB_*" ]
pull_request:
branches: [ "MDB_*" ]

jobs:

check:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file docker/regress/Dockerfile --tag regress_test:1234 && docker run --entrypoint /home/build-user/docker/regress/run_tests_f.sh regress_test:1234

check-world:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file docker/regress/Dockerfile --tag regress_test:1234 && docker run --entrypoint /home/build-user/docker/regress/run_tests.sh regress_test:1234


56 changes: 56 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
ARG codename
FROM ubuntu:${codename:-bionic}

ARG codename
ENV CODE_NAME=${codename:-bionic}

ARG pgdg
ENV PGDG_VER=${pgdg:-242-2-pgdg18.04+1+yandex220}

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Moskow
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN sed -i 's/archive.ubuntu.com/mirror.yandex.ru/g' /etc/apt/sources.list &&\
apt-get update && apt-get install -y --no-install-recommends \
sudo build-essential \
gcc lsb-release libssl-dev gnupg openssl \
gdb git curl gnupg

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FF5F4D0E27393420

RUN echo "deb http://dist.yandex.ru/mdb-${CODE_NAME}-secure stable/all/" >> /etc/apt/sources.list
RUN echo "deb http://dist.yandex.ru/mdb-${CODE_NAME}-secure stable/\$(ARCH)/" >> /etc/apt/sources.list

RUN curl -s 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xafc3ce0d00e3c45a357e9e637fcd11186050cd1a' | \
gpg --dearmour -o /etc/apt/trusted.gpg.d/yandex.gpg

RUN apt-get update && apt-get install -y --no-install-recommends \
sudo build-essential \
gcc lsb-release libssl-dev gnupg openssl \
gdb git \
libpam0g-dev \
debhelper debootstrap devscripts make equivs debhelper-compat \
libz-dev flex libicu-dev libio-pty-perl libipc-run-perl libkrb5-dev \
libldap2-dev liblz4-dev liblz4-tool zstd libperl-dev libreadline-dev libselinux1-dev llvm-18-dev \
libsystemd-dev libxml2-dev libxml2-utils libxslt1-dev \
python3-dev systemtap-sdt-dev tcl-dev uuid-dev xsltproc zlib1g-dev \
bison dh-exec docbook-xml docbook-xsl \
clang-18 libcurl4-openssl-dev libnuma-dev liburing-dev libzstd-dev pkgconf tzdata
RUN apt-get install -y \
libmdblocales1 libmdblocales-dev \
postgresql-client-common=${PGDG_VER} \
postgresql-common=${PGDG_VER} \
postgresql-common-dev=${PGDG_VER}

RUN groupadd -g 999 build-user && \
useradd -r -u 999 -g build-user build-user

COPY . /home/build-user
RUN chown build-user:build-user /home -R && usermod -aG sudo build-user

RUN echo 'build-user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

USER build-user

ENTRYPOINT ["/home/build-user/docker/entrypoint.sh"]
3 changes: 3 additions & 0 deletions HISTORY
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ https://www.postgresql.org/docs/current/release.html

Distribution file sets include release notes for their version and preceding
versions. Visit the file doc/src/sgml/html/release.html in an HTML browser.

On Debian systems, the release notes are contained in the postgresql-doc-*
packages, located in /usr/share/doc/postgresql-doc-*/html/release.html.
90 changes: 90 additions & 0 deletions MDB-PATCHES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@

15:

7dfdf3a55ed: mdb_replication role patch
f6a3406fed8: Disallow cancelation of syncronous commit V1
4289037edd2: Extend multixact SLRU
d6842b7f65c: Allow mdb_admin to create LEAKPROOF functions
146a82b3a75: mdb admin sets session replication role
68312eae50b: [MDB-16648]: Allow mdb admin to kill specific superuser queries
ab8f5243195: provide [mdb -postgresql] restict grant roles in YC[MDB-16990]
8ccf1aa7c51: Allow mdb admin to tranfers ownership on non-superuser objects regressioon tests for mdb admin functionality[MDB-16988]
bf4cad5ecdd: MDB-17910: check MDB reserved application name fix
64fed445a14: MDB-16955 : disallow to kill repl mon in cloud
afeb1eb4c2f: Fix mdb_replication role
5852300fb1d: pg_replication_slot_advance fix
c52bd070b56: Fix compilation errors

0db90bbcbdd: Demonstrate and fix lock of all SQL queries by pg_stat_statements
530019f966d: MDB-21297: forbit usage of COPY TO PROGRAMM and COPY FROM PROGRAMM to non-superuser
8c860bf4d66: Reimplement mdb-admin, refactor mdb_admin check and usages.

3a89cc36c74: Implement mdb-locales patch
dc7d503498b: Add mdb locales patch, restore COPY from/to files, enable regress.
96c30d707a7: Role mdb_superuser: feature and regress testsing
2d5f40ce3c9: Refactor optional setlocale, fix minor issues
41f04495a89: Update dependencies: bump libmdblocales, add mdb-locales
adc0b21d39f: Allow mdb_superuser to have power of pg_database_owner
ac90e1819fa: MDB-23247: startup param for auth passthrough under unpriviledged user
2bf6f042542: Add tap-test for mdb service role auth 👍👌😉
9750b4efc44: Use fadvise to prefetch WAL in xlogrecovery
25f12802528: Fix tests after rebasecontrib tests 💅️️💅️️💅️️ now works
746dd65f557: MDB-23247: debug ouput for testing purposes lowered to DEBUG5 elog level





16:

/* misc */

/* on branch mdb-16 cherry-picked 'as is' */
f6a3406fed8 -> 1effb23478e: Disallow cancelation of syncronous commit V1
4289037edd2 -> b542d608604: Extend multixact SLRU



/* mdb - admin + mdb_replication */
7dfdf3a55ed: mdb_replication role patch


d6842b7f65c: Allow mdb_admin to create LEAKPROOF functions
146a82b3a75: mdb admin sets session replication role
68312eae50b: [MDB-16648]: Allow mdb admin to kill specific superuser queries
8ccf1aa7c51: Allow mdb admin to tranfers ownership on non-superuser objects regressioon tests for mdb admin functionality[MDB-16988]
8c860bf4d66: Reimplement mdb-admin, refactor mdb_admin check and usages.

/* sqashed to */
52435055d7b: Mdb-admin patch and regression tests
/*******/

/* as is */
ab8f5243195->3fecc85426e: provide [mdb -postgresql] restict grant roles in YC[MDB-16990]

/* pack of mdb patches */
bf4cad5ecdd: MDB-17910: check MDB reserved application name fix
64fed445a14: MDB-16955 : disallow to kill repl mon in cloud
afeb1eb4c2f: Fix mdb_replication role
5852300fb1d: pg_replication_slot_advance fix
c52bd070b56: Fix compilation errors

/* squashed to */
52ea09c2d90: Pack of MDB-related patches:
/* */

0db90bbcbdd: Demonstrate and fix lock of all SQL queries by pg_stat_statements
530019f966d: MDB-21297: forbit usage of COPY TO PROGRAMM and COPY FROM PROGRAMM to non-superuser

3a89cc36c74: Implement mdb-locales patch
dc7d503498b: Add mdb locales patch, restore COPY from/to files, enable regress.
96c30d707a7: Role mdb_superuser: feature and regress testsing
2d5f40ce3c9: Refactor optional setlocale, fix minor issues
41f04495a89: Update dependencies: bump libmdblocales, add mdb-locales
adc0b21d39f: Allow mdb_superuser to have power of pg_database_owner
ac90e1819fa: MDB-23247: startup param for auth passthrough under unpriviledged user
2bf6f042542: Add tap-test for mdb service role auth 👍👌😉
9750b4efc44: Use fadvise to prefetch WAL in xlogrecovery
25f12802528: Fix tests after rebasecontrib tests 💅️️💅️️💅️️ now works
746dd65f557: MDB-23247: debug ouput for testing purposes lowered to DEBUG5 elog level

Loading
Loading