Re: bug in permission handling?

Поиск
Список
Период
Сортировка
От Gavin Sherry
Тема Re: bug in permission handling?
Дата
Msg-id Pine.LNX.4.21.0201151442530.26976-100000@linuxworld.com.au
обсуждение исходный текст
Ответ на Re: bug in permission handling?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: bug in permission handling?
Список pgsql-hackers
On Mon, 14 Jan 2002, Tom Lane wrote:

> Martin Renters <martin@datafax.com> writes:
> > Should the permissions of a deleted user get assigned to a new user
> > as in the example below?
> 
> That can happen, since the default "usesysid" assignment is "max
> existing usesysid + 1".  If you delete the last user then their sysid
> becomes a candidate for reassignment.  This is not real good, but fixing
> it isn't that high on the priority list (and is difficult to do unless
> we take away the option of hand-assigned sysids ... otherwise we could
> just have a sequence generator for sysids).

Another slight bug with CreateUser() -- there does not appear to be any
checking for potential overflow of sysid. The function scans pg_shadow to
find the largest usrsysid. Once obtained:
   /* If no sysid given, use max existing id + 1 */   if (!havesysid)       sysid = max_id + 1;

Gavin



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Theory about XLogFlush startup failures
Следующее
От: Gavin Sherry
Дата:
Сообщение: Re: bug in permission handling?