diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2024-03-19 13:32:50 +0100 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2024-03-19 13:32:50 +0100 |
commit | 347758b1206364e3bec5ad6cd649b4ba9fe1be7b (patch) | |
tree | cd5dbdc7d8f9257a7c64e6930b34e4df00dde152 /src/backend/utils/adt/ruleutils.c | |
parent | 5577a71fb0cc16bb7f5e3c40b89eb77460eac724 (diff) | |
download | postgresql-347758b1206364e3bec5ad6cd649b4ba9fe1be7b.tar.gz postgresql-347758b1206364e3bec5ad6cd649b4ba9fe1be7b.zip |
pg_upgrade: run all data type checks per connection
The checks for data type usage were each connecting to all databases
in the cluster and running their query. On clusters which have a lot
of databases this can become unnecessarily expensive. This moves the
checks to run in a single connection instead to minimize setup and
teardown overhead.
Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Reviewed-by: Justin Pryzby <pryzby@telsasoft.com>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/BB4C76F-D416-4F9F-949E-DBE950D37787@yesql.se
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions