Re: Restart a sequence regularly

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Restart a sequence regularly
Дата
Msg-id dcc563d10711210953o407f7a7dy3097f240ebcb7369@mail.gmail.com
обсуждение исходный текст
Ответ на Restart a sequence regularly  ("Kathy Lo" <kathy.lo.ky@gmail.com>)
Ответы Re: Restart a sequence regularly  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Restart a sequence regularly  ("Kathy Lo" <kathy.lo.ky@gmail.com>)
Список pgsql-general
On Nov 21, 2007 11:44 AM, Marco Colombo <marco@esi.it> wrote:
> Scott Marlowe wrote:
> > revoke all privs on the sequence to anyone but the user about to reset it
> > reset it
> > grant the options back
>
> Quoting the OP:
> > That means, when others want to access the sequence between
> > 31-Dec 23:59:55 and 1-Jan 00:00:05, they are waiting instead of
> > getting an error.
>
> If you remove the privs, clients will get an error, unless I'm missing
> something.

Good point.  I'm guessing if you need a way to make other users wait,
not get an error, you'll need to use a funtion with a security definer
that will sleep or something during that period.

hmmmmm.

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

Предыдущее
От: SHARMILA JOTHIRAJAH
Дата:
Сообщение: Re: Postgres table size
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Postgres table size