Re: table sequence

Поиск
Список
Период
Сортировка
От A.Bhuvaneswaran
Тема Re: table sequence
Дата
Msg-id Pine.LNX.4.44.0303211741360.2317-100000@Bhuvan.bksys.co.in
обсуждение исходный текст
Ответ на table sequence  ("Crombleholme, Roy" <Roy.Crombleholme@its.lancscc.gov.uk>)
Список pgsql-novice
> Hello, I've changed the owner of a table in a database from the super-user
> to a normal user using the command ALTER TABLE table OWNER TO user;
> This changed the owner of the table but not the sequence associated with it.
> What is the command to do this.  I have trawled through numerous forums and
> pages for the solution but could not find one.  I am running postgresql 7.2
> on Solaris 8.

One among the way is,

1. Check the current value of that sequence
2. Drop that sequence as super user
3. Create the SAME sequence as non-super user with start value as previous
   current value.

regards,
bhuvaneswaran



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

Предыдущее
От: "Crombleholme, Roy"
Дата:
Сообщение: table sequence
Следующее
От: HK
Дата:
Сообщение: Initialising bit values inside stored procedure.