pg_upgrade: speed up AO segment queries
The query to obtain AO auxiliary catalog names is relatively expensive compared to the other aux table queries, and it was being performed once for every AO table. Consolidate all calls into a single query, and manually join the results with the other relation info by relid. Also improve the "couldn't find aux tables" FATAL message for easier debugging (it needs to include the dbname).
Showing
想要评论请 注册 或 登录