Re: TODO item: Allow more complex user/database default GUC settings

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: TODO item: Allow more complex user/database default GUC settings
Дата
Msg-id 20090826021738.GR12604@alvh.no-ip.org
обсуждение исходный текст
Ответ на TODO item: Allow more complex user/database default GUC settings  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: TODO item: Allow more complex user/database default GUC settings  (Bernd Helmle <mailings@oopsware.de>)
Список pgsql-hackers
Alvaro Herrera wrote:

> Implementation-side, it requires a new catalog (pg_settings), with the
> following columns:

So, I've come up with the attached patch.  It does not have the new
command yet, so you can do ALTER USER and ALTER DATABASE and it works,
but there's no way to set user-and-database-specific settings, short of
INSERT into the catalog.  Apart from that it works nicely.

I'm just posting in case somebody has thoughts on the UI part of it.

Other things that need fixed:

- need to figure out locking for roles; this stuff must be synchronized
  with role drop
- pg_shadow and pg_roles need a join to obtain settings
- two regression tests need their expected file updated
- catalog version bump

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

Вложения

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

Предыдущее
От: Chander Ganesan
Дата:
Сообщение: Re: We should Axe /contrib/start-scripts
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Unicode UTF-8 table formatting for psql text output