Alter Column from inet to inet[]

Поиск
Список
Период
Сортировка
От Alex -
Тема Alter Column from inet to inet[]
Дата
Msg-id BAY170-W471EDAC618540FCB56CCC7CF590@phx.gbl
обсуждение исходный текст
Ответы Re: Alter Column from inet to inet[]  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi,
I need to change a column type from inet to inet[] but the alter command always gives me the following errors

ERROR:  column "access_ip" cannot be cast to type inet[]

ALTER TABLE users ALTER COLUMN access_ip SET DATA TYPE inet[] USING access_ip::inet[];

Tried various but no luck. Couldn't find anything in the manuals either.

Can anyone point me in the right direction or tell me what's wrong with my statement.

Thanks for any help.

Alex

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

Предыдущее
От: Carson Gross
Дата:
Сообщение: Re: Upgrade questions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Alter Column from inet to inet[]