Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
73f9d1d
pg_dump: Add dumpSchema and dumpData derivative flags.
nathan-bossart Nov 25, 2024
152b4a9
Add --no-sync to pg_upgrade's uses of pg_dump and pg_dumpall.
nathan-bossart Jul 1, 2024
1e20ec9
Create functions pg_set_relation_stats, pg_clear_relation_stats.
jeff-davis Oct 11, 2024
931d841
Allow pg_set_relation_stats() to set relpages to -1.
jeff-davis Oct 18, 2024
05f8dca
Disable autovacuum for tables in stats import tests.
jeff-davis Oct 18, 2024
718078a
Change pg_*_relation_stats() functions to return type to void.
jeff-davis Oct 22, 2024
5a64e19
Add functions pg_set_attribute_stats() and pg_clear_attribute_stats().
jeff-davis Oct 22, 2024
d74f298
Improve pg_set_attribute_stats() error message.
jeff-davis Oct 23, 2024
85d2600
Add functions pg_restore_relation_stats(), pg_restore_attribute_stats().
jeff-davis Oct 24, 2024
14ec8ba
Disallow modifying statistics on system columns.
jeff-davis Nov 22, 2024
1a42606
Use in-place updates for pg_restore_relation_stats().
jeff-davis Dec 11, 2024
1091da0
Transfer statistics during pg_upgrade.
jeff-davis Feb 20, 2025
d9bf1ab
Allow non-superuser to cancel superuser tasks.
reshke Feb 26, 2024
df29088
Add debain for PostgreSQL 17
reshke Feb 26, 2024
52dfa76
Apply deb patch and remove stop version.
reshke Feb 26, 2024
de3daf9
Yandex build infra commit
Feb 26, 2024
d310a84
Untrust all contrib
Dec 26, 2023
8b28aa4
Disallow cancelation of syncronous commit V1
x4m Oct 27, 2020
ae37ab9
Extend multixact SLRU
x4m Dec 6, 2020
6636682
Mdb-admin patch and regression tests
reshke Apr 13, 2021
c79e701
MDB replication role patch
x4m Dec 6, 2020
a425425
Role mdb_superuser: feature and regress testsing
reshke Feb 21, 2023
23f3904
provide [mdb -postgresql] restict grant roles in YC[MDB-16990]
reshke Feb 22, 2022
6d5aec2
MDB-16955 : disallow to kill repl mon in cloud
reshke May 11, 2022
281fe0f
Demonstrate and fix lock of all SQL queries by pg_stat_statements
Sep 12, 2022
901e771
MDB-21297: forbit usage of COPY TO PROGRAMM and COPY FROM PROGRAMM to…
reshke Jan 18, 2023
5210a68
Implement mdb-locales patch
usernamedt Feb 13, 2023
24fde05
MDB-23247: startup param for auth passthrough under unpriviledged user
reshke May 11, 2023
1fa6178
Add mdb changelog
reshke Jul 5, 2023
9dc5348
Restrict DROP DATABASE to superuser only
May 28, 2024
303adf9
[MDB-28474] Increate readaheadchunk for XlogPageReader()
x4m Jul 8, 2024
9221cfa
Use fadvise to prefetch WAL in xlogrecovery
Jun 23, 2022
31cc631
parameter max_log_size to truncate logs
diPhantxm Sep 9, 2024
e41c91a
Pull request #201: bump llvm to 18 17.0
Nov 2, 2024
017095d
Support FORCE option in analyze command
diPhantxm Aug 26, 2024
205071d
truncate query to be logged in simple query
diPhantxm Nov 12, 2024
5c36802
GUCify NUM_BUFFER_PARTITIONS
x4m Nov 13, 2024
fc84bbe
Change storage class for mdb_replication utilities
Dec 11, 2024
4f17999
Add CI
reshke Jan 16, 2025
3a5c525
Do not use schema public in mdb_superuser regression tests (#7)
reshke Jan 21, 2025
e2ba375
Rewrite Dockerfile logic
EinKrebs Jan 24, 2025
18d3848
Introduce mdb_read_all_data/mdb_write_all_data
reshke Feb 7, 2025
7e48f78
Add check for mdb_service_auth role
reshke Apr 26, 2025
60d9569
Make mdb_admin and mdb_superuser an implicit grant with
reshke Aug 15, 2025
8330f7c
pg_stat_statements.c: cancelable qtext_load_file
rkhapov May 12, 2025
1fdd853
MDB-40410: Allow to kill backends which have application_name startin…
vicpopov Dec 1, 2025
68b4b5d
Fix MDB-signal process and add TAP test for feature
reshke Dec 8, 2025
6b57aea
v6 of bt_page_items pretty-print
reshke Jan 18, 2026
e7d700d
Add archive_mode=shared for coordinated WAL archiving
x4m Feb 10, 2026
7feecff
Mark ancestor timeline WAL segments as archived
x4m Feb 10, 2026
48c8459
Optimize ProcessArchivalReport to avoid directory scans
x4m Feb 11, 2026
d95045b
Fuse shared archive with ycmdb.shared_archive
x4m Feb 12, 2026
1ff9060
REASSIGN OWNED: ignore subscriptions in other databases
alvherre Jan 1, 2026
648ea57
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

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-key adv --keyserver keyserver.ubuntu.com --recv-keys FF5F4D0E27393420

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 \
pkg-config python3-dev systemtap-sdt-dev tcl-dev uuid-dev xsltproc zlib1g-dev \
bison dh-exec docbook-xml docbook-xsl

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