Change column type macaddr to macaddr[]

Поиск
Список
Период
Сортировка
От Ertan Küçükoğlu
Тема Change column type macaddr to macaddr[]
Дата
Msg-id 002401d381c9$6cde3d70$469ab850$@1nar.com.tr
обсуждение исходный текст
Ответы Re: Change column type macaddr to macaddr[]  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
Hello,

I am using PostgreSQL 9.6.6 on armv8l-unknown-linux-gnueabihf, compiled by
gcc (Raspbian 6.3.0-18+rpi1) 6.3.0 20170516, 32-bit

I have a table with column name mac type macaddr. I need to change it into
array of macaddr ( macaddr[] ) type. Among all others I did try below:

licenses=# alter table licreqm alter column mac type macaddr[] using
mac::macaddr[];
ERROR:  cannot cast type macaddr to macaddr[]
LINE 1: ... licreqm alter column mac type macaddr[] using mac::macaddr[...
                                                             ^
I believe there should be a way, I just do not know it myself. Anyone can
help me?

Thanks & regards,
Ertan Küçükoğlu




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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: Sv: Re: Does PostgreSQL check database integrity at startup?
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Change column type macaddr to macaddr[]