Walk-through of implementing simple Postgres patch. From sources to CI.

Опубликовано: 30 Июль 2026
на канале: Byte Relay
4,046
175

In this video I'm doing "magic" binary search. This search fallbacks to linear search when the number of tuples is small. Typically this is done to reduce number of branch mispredictions, but it's rather toy feature here. It's taken only for example.
Resulting code https://github.com/x4m/postgres_g/com...
https://wiki.postgresql.org/wiki/Comp...
git clone --depth=5 --single-branch --branch=master https://github.com/postgres/postgres
cd postgres
./configure --prefix=$PWD --enable-depend
make -j10 to /dev/null
make check