mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-11 23:17:46 +02:00
Currently, database OIDs, relfilenodes, and tablespace OIDs can all change when a cluster is upgraded using pg_upgrade. It seems better to preserve them, because (1) it makes troubleshooting pg_upgrade easier, since you don't have to do a lot of work to match up files in the old and new clusters, (2) it allows 'rsync' to save bandwidth when used to re-sync a cluster after an upgrade, and (3) if we ever encrypt or sign blocks, we would likely want to use a nonce that depends on these values. This patch only arranges to preserve relfilenodes and tablespace OIDs. The task of preserving database OIDs is left for another patch, since it involves some complexities that don't exist in these cases. Database OIDs have a similar issue, but there are some tricky points in that case that do not apply to these cases, so that problem is left for another patch. Shruthi KC, based on an earlier patch from Antonin Houska, reviewed and with some adjustments by me. Discussion: http://postgr.es/m/CA+TgmoYgTwYcUmB=e8+hRHOFA0kkS6Kde85+UNdon6q7bt1niQ@mail.gmail.com |
||
---|---|---|
.. | ||
.gitignore | ||
aclchk.c | ||
catalog.c | ||
Catalog.pm | ||
dependency.c | ||
genbki.pl | ||
heap.c | ||
index.c | ||
indexing.c | ||
information_schema.sql | ||
Makefile | ||
namespace.c | ||
objectaccess.c | ||
objectaddress.c | ||
partition.c | ||
pg_aggregate.c | ||
pg_cast.c | ||
pg_class.c | ||
pg_collation.c | ||
pg_constraint.c | ||
pg_conversion.c | ||
pg_db_role_setting.c | ||
pg_depend.c | ||
pg_enum.c | ||
pg_inherits.c | ||
pg_largeobject.c | ||
pg_namespace.c | ||
pg_operator.c | ||
pg_proc.c | ||
pg_publication.c | ||
pg_range.c | ||
pg_shdepend.c | ||
pg_subscription.c | ||
pg_type.c | ||
sql_feature_packages.txt | ||
sql_features.txt | ||
storage.c | ||
system_functions.sql | ||
system_views.sql | ||
toasting.c |