Re: Moving sequences to another schema

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Moving sequences to another schema
Дата
Msg-id 42C0AA30.7060304@familyhealth.com.au
обсуждение исходный текст
Ответ на Moving sequences to another schema  (Bernd Helmle <mailings@oopsware.de>)
Ответы Re: Moving sequences to another schema  (Bernd Helmle <mailings@oopsware.de>)
Список pgsql-hackers
> When altering a sequence created by a SERIAL column type (i do this by 
> examining pg_depend to avoid moving any other sequences that are 
> 'foreign'), i need to recreate the default expression for the SERIAL 
> column (stored in pg_attrdef.adbin). Is there an API to do that, or do i 
> have to recreate the executable expression tree from scratch? Or am i 
> missing something completely...

Does ALTER TABLE/RENAME code help you?  You can rename sequences with 
that...

Chris



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

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: GiST concurrency commited
Следующее
От: Christopher Browne
Дата:
Сообщение: Re: Implementing SQL/PSM for PG 8.2