sudo apt install build-essential libreadline-dev zlib1g-dev bison flex
> git clone https://github.com/postgres/postgres
> cd postgres
> patch -p1 < a.diff
> autoconf
./configure
> make
> make check-world
>
> All checks passed on a c6g Graviton2 instance.
I also run the above steps on bionic - ubuntu 18.04 - to check that the patch passes when gcc does not have the
-moutline-atomicsflag.
All checks pass on bionic on a c6g instance.
Thanks Ali for recommending the extra test.
Sebastian