Marcel Ruff <ruff@netwake.com> writes:
> I have compiled
> git clone git://git.postgresql.org/git/postgresql.git
> to find out if this is more stable.
> But /pg_ctl start/ says:
> /"The data directory was initialized by PostgreSQL version 12, which
> is not compatible with this version 13devel"/
You should do "git checkout REL_12_STABLE" and build from that branch.
(It's advisable to do "git clean -dfx" to make sure you don't have
any leftover build products from the master-branch build, first.
The build process isn't natively smart enough to deal with this
scenario reliably.)
regards, tom lane