Moving sequences to another schema

Поиск
Список
Период
Сортировка
От Bernd Helmle
Тема Moving sequences to another schema
Дата
Msg-id 7C497D6E6EE1BE19A3D28337@sparkey.oopsware.intra
обсуждение исходный текст
Ответы Re: Moving sequences to another schema  (Alvaro Herrera <alvherre@surnet.cl>)
Re: Moving sequences to another schema  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Re: Moving sequences to another schema  (Bernd Helmle <mailings@oopsware.de>)
Список pgsql-hackers
I'm still playing around with the ALTER OBJECT SET SCHEMA stuff. I managed 
to alter indexes and constraints as well for tables, but with SERIAL 
sequences there is one little problem:

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...

TIA

-- 

 Bernd


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

Предыдущее
От: "Hiroshi Saito"
Дата:
Сообщение: Re: tsearch2 vs core?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: For review: dbsize patch