Add pg_depend.refobjversion.
authorThomas Munro <tmunro@postgresql.org>
Mon, 2 Nov 2020 06:40:49 +0000 (19:40 +1300)
committerThomas Munro <tmunro@postgresql.org>
Mon, 2 Nov 2020 11:44:59 +0000 (00:44 +1300)
commitcd6f479e79f3a33ef7a919c6b6c0c498c790f154
tree3f3c3187d6613675731433def9eef9e691293711
parent7d1297df0830725d4434ba7dbf71a9e8221ad49e
Add pg_depend.refobjversion.

Provide a place for the version of referenced database objects to be
recorded.  A follow-up commit will use this to record dependencies on
collation versions for indexes, but similar ideas for other kinds of
objects have also been mooted.

Author: Thomas Munro <thomas.munro@gmail.com>
Reviewed-by: Julien Rouhaud <rjuju123@gmail.com>
Reviewed-by: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Discussion: https://postgr.es/m/CAEepm%3D0uEQCpfq_%2BLYFBdArCe4Ot98t1aR4eYiYTe%3DyavQygiQ%40mail.gmail.com
doc/src/sgml/catalogs.sgml
src/backend/catalog/dependency.c
src/backend/catalog/pg_depend.c
src/include/catalog/catversion.h
src/include/catalog/dependency.h
src/include/catalog/pg_depend.h
src/include/catalog/toasting.h
src/test/regress/expected/misc_sanity.out