Re: The use of atooid() on non-Oid results

2023-03-16 Thread Daniel Gustafsson
> On 16 Mar 2023, at 15:58, Tom Lane wrote: > > Daniel Gustafsson writes: >> When looking at the report in [0] an API choice in the relevant pg_upgrade >> code >> path stood out as curious. check_is_install_user() runs this query to ensure >> that only the install user is present in the cluste

Re: The use of atooid() on non-Oid results

2023-03-16 Thread Tom Lane
Daniel Gustafsson writes: > When looking at the report in [0] an API choice in the relevant pg_upgrade > code > path stood out as curious. check_is_install_user() runs this query to ensure > that only the install user is present in the cluster: > res = executeQueryOrDie(conn, >

The use of atooid() on non-Oid results

2023-03-16 Thread Daniel Gustafsson
When looking at the report in [0] an API choice in the relevant pg_upgrade code path stood out as curious. check_is_install_user() runs this query to ensure that only the install user is present in the cluster: res = executeQueryOrDie(conn, "SELECT COUNT(*) "