Re: Major Version Upgrade failure due to orphan roles entries in catalog

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Major Version Upgrade failure due to orphan roles entries in catalog
Дата
Msg-id 1103272.1772227345@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Major Version Upgrade failure due to orphan roles entries in catalog  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Major Version Upgrade failure due to orphan roles entries in catalog
Список pgsql-bugs
I wrote:
> I'd be content to use those wordings (except I think our style
> guide wants detail to be punctuated like a sentence).  I'll wait
> a day or so to see if anyone has a better idea, though.

When I looked at the code more closely, I realized that it already
doesn't dump grantors when dumping from pre-v16.  I'm inclined to
think that is an overreaction to the possible unreliability of the
data (and from your comment upthread you might agree).  But given
the lack of complaints about it, let's leave that as-is for now.
The immediate problem is that the code is allowing a null grantor to
suppress the GRANT altogether, *even if it's not going to use the
grantor*.  Clearly that's silly.  But if we're not going to use
the grantor, let's skip trying to fetch it, which means we also
don't need the info-level variant of the message.

So I end with the attached draft patch.

            regards, tom lane

#text/x-diff; name="v1-clean-up-dumpRoleMembership.patch" [v1-clean-up-dumpRoleMembership.patch]
/home/tgl/pgsql/v1-clean-up-dumpRoleMembership.patch



В списке pgsql-bugs по дате отправления: