{"push_id":911529392,"size":2,"distinct_size":2,"ref":"refs/heads/REL9_2_STABLE","head":"f9643d0d6dd303a6733f8b3015c7659680e7fe42","before":"7af3dd540e29d057ff11d5c3ed946b071885c66f","commits":[{"sha":"653530c8b1963bf91e19d03305dd0df5ad776bec","author":{"email":"3c84f0de6f8a0f296d36cdd9f57fa166641c96b1@alvh.no-ip.org","name":"Alvaro Herrera"},"message":"some bullshit","distinct":true,"url":"https://api.github.com/repos/postgres/postgres/commits/653530c8b1963bf91e19d03305dd0df5ad776bec"},{"sha":"f9643d0d6dd303a6733f8b3015c7659680e7fe42","author":{"email":"3c84f0de6f8a0f296d36cdd9f57fa166641c96b1@alvh.no-ip.org","name":"Alvaro Herrera"},"message":"Rework internals of changing a type's ownership\n\nThis is necessary so that REASSIGN OWNED does the right thing with\ncomposite types, to wit, that it also alters ownership of the type's\npg_class entry -- previously, the pg_class entry remained owned by the\noriginal user, which caused later other failures such as the new owner's\ninability to use ALTER TYPE to rename an attribute of the affected\ncomposite.  Also, if the original owner is later dropped, the pg_class\nentry becomes owned by a non-existant user which is bogus.\n\nTo fix, create a new routine AlterTypeOwner_oid which knows whether to\npass the request to ATExecChangeOwner or deal with it directly, and use\nthat in shdepReassignOwner rather than calling AlterTypeOwnerInternal\ndirectly.  AlterTypeOwnerInternal is now simpler in that it only\nmodifies the pg_type entry and recurses to handle a possible array type;\nhigher-level tasks are handled by either AlterTypeOwner directly or\nAlterTypeOwner_oid.\n\nI took the opportunity to add a few more objects to the test rig for\nREASSIGN OWNED, so that more cases are exercised.  Additional ones could\nbe added for superuser-only-ownable objects (such as FDWs and event\ntriggers) but I didn't want to push my luck by adding a new superuser to\nthe tests on a backpatchable bug fix.\n\nPer bug #13666 reported by Chris Pacejo.\n\nThis is a backpatch of commit 756e7b4c9db1 to branches 9.1 -- 9.4.","distinct":true,"url":"https://api.github.com/repos/postgres/postgres/commits/f9643d0d6dd303a6733f8b3015c7659680e7fe42"}]}