pgsql: Remove backwards compat ugliness in snapbuild.c. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Remove backwards compat ugliness in snapbuild.c.
Date
Msg-id E1lBojb-0006Eq-JL@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Remove backwards compat ugliness in snapbuild.c.

In 955a684e040 we fixed a bug in initial snapshot creation. In the
course of which several members of struct SnapBuild were obsoleted. As
SnapBuild is serialized to disk we couldn't change the memory layout.

Unfortunately I subsequently forgot about removing the backward compat
gunk, but luckily Heikki just reminded me.

This commit bumps SNAPBUILD_VERSION, therefore breaking existing
slots (which is fine in a major release).

Author: Andres Freund
Reminded-By: Heikki Linnakangas <hlinnaka@iki.fi>
Discussion: https://postgr.es/m/c94be044-818f-15e3-1ad3-7a7ae2dfed0a@iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a975ff4980d60f8cbd8d8cbcff70182ea53e787a

Modified Files
--------------
src/backend/replication/logical/snapbuild.c | 103 +++++-----------------------
1 file changed, 18 insertions(+), 85 deletions(-)


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: pgsql: Fix compiler warning in back branches (9.6, 10).
Next
From: Andres Freund
Date:
Subject: pgsql: Fix heap_page_prune() parameter order confusion introduced in dc