Andres Freund <andres(at)anarazel(dot)de> writes:
> I propose that for each pg_class entry we start to keep the following
> additional metadata:
> - CATALOG_VERSION_NO at relation creation
> - PG_VERSION_NUM at relation creation
> - CATALOG_VERSION_NO at last full scan by vacuum
> - PG_VERSION_NUM at last full scan by vacuum
(1) It's very very hard for me to believe that we need *two* versions of
the version number. Pick one.
(2) How you gonna update this in vacuum? It cannot do a transactional
update.
regards, tom lane