Remove direct call to GetNewObjectId() for pg_auth_members.oid
authorMichael Paquier <michael@paquier.xyz>
Mon, 12 Dec 2022 00:01:39 +0000 (09:01 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 12 Dec 2022 00:01:39 +0000 (09:01 +0900)
commiteae7fe485998ac493a3d9dadf254a89c9265891e
tree77a031baceb8ad9ffbee7c3bc756b18d45e8fbc4
parentb8c0ffbd2c8038fbebe76b48616860a7efec66ae
Remove direct call to GetNewObjectId() for pg_auth_members.oid

This routine should not be called directly as mentioned at its top, so
replace it by GetNewOidWithIndex().  Issue introduced by 6566133 when
pg_auth_members.oid got added, so no backpatch is needed.

Author: Maciek Sakrejda
Discussion: https://postgr.es/m/CAOtHd0Ckbih7Ur7XeVyLAJ26VZOfTNcq9qV403bNF4uTGtAN+Q@mail.gmail.com
src/backend/commands/user.c