Re: Removing all users from a group

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Removing all users from a group
Дата
Msg-id 20050831183934.GC14167@wolff.to
обсуждение исходный текст
Ответ на Removing all users from a group  (David Sankel <camior@gmail.com>)
Список pgsql-general
On Wed, Aug 31, 2005 at 12:30:14 +0200,
  David Sankel <camior@gmail.com> wrote:
>
> DELETE FROM pg_user
> WHERE usesysid = ANY ( SELECT grolist
> FROM pg_group
> WHERE groname = 'somegroupname' )
>
> But, alas, it doesn't. Neither does any combination of IN and ANY. It seems
> to me like this should work since the same syntax works if we weren't
> talking about arrays.

In 8.1 you will be able to replace the second FROM with USING to do a join
in a DELETE. Currently you need to take advantage of the missing from
feature.

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: optimum settings for dedicated box
Следующее
От: Frank
Дата:
Сообщение: Re: newbie - postgresql or mysql