Re: mapping object names to role IDs

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: mapping object names to role IDs
Дата
Msg-id 20100523142826.GC21875@tamriel.snowman.net
обсуждение исходный текст
Ответ на mapping object names to role IDs  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: mapping object names to role IDs  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
* Robert Haas (robertmhaas@gmail.com) wrote:
> Long story short, this is kind of a mess.

I agree that it's a bit of a mess.

> What I would propose is that we create a new source
> file somewhere (maybe utils/cache), move all of the other functions of
> this type there, give them standardized names, and provide them all
> with an argument that specifies whether an error is to be thrown if
> the object doesn't exist.

Something which has come up in the past is that putting all the
functions that do the same kind of thing, but operate on different
types of objects, into the same backend file/area ends up meaning that
such an area has an untold amount of knowledge about everything.
Additionally, what *does* go into said area has tons of things that are
only related by the kind of operation- not because they actually have
anything to do with each other.

This was one of the complaints levied at the approach for moving all the
ACL checking into one place.  I think it would be good to have a
consistant naming/calling scheme for these various functions, but I'm
not sure that moving them all to the same place makes sense.
Thanks,
    Stephen

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: mapping object names to role IDs
Следующее
От: Tom Lane
Дата:
Сообщение: Re: mapping object names to role IDs