]> granicus.if.org Git - postgresql/commit
Update pg_upgrade test for reg* to include regrole and regnamespace.
authorAndres Freund <andres@anarazel.de>
Tue, 27 Nov 2018 01:00:43 +0000 (17:00 -0800)
committerAndres Freund <andres@anarazel.de>
Tue, 27 Nov 2018 01:00:59 +0000 (17:00 -0800)
commit203a909fd29656d65a451c791e326ff92a09d893
tree2ef80abec9afc49d55d8b0ccb9c0b0f4504688a4
parentad6dfc6ab3e48126edd38b149134b7311124648b
Update pg_upgrade test for reg* to include regrole and regnamespace.

When the regrole (0c90f6769) and regnamespace (cb9fa802b) types were
added in 9.5, pg_upgrade's check for reg* types wasn't updated. While
regrole currently is safe, regnamespace is not.

It seems unlikely that anybody uses regnamespace inside catalog tables
across a pg_upgrade, but the tests should be correct nevertheless.

While at it, reorder the types checked in the query to be
alphabetical. Otherwise it's annoying to compare existing and tested
for types.

Author: Andres Freund
Discussion: https://postgr.es/m/037e152a-cb25-3bcb-4f35-bdc9988f8204@2ndQuadrant.com
Backpatch: 9.5-, as regrole/regnamespace
src/bin/pg_upgrade/check.c