From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Ertan Küçükoğlu <ertan(dot)kucukoglu(at)1nar(dot)com(dot)tr> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Change column type macaddr to macaddr[] |
Date: | 2017-12-30 23:56:13 |
Message-ID: | CAKFQuwa1hemKcQ4b4_71AW4J1ATMZjmqyEAuKKM-4rWoaG452Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Saturday, December 30, 2017, Ertan Küçükoğlu <ertan(dot)kucukoglu(at)1nar(dot)com(dot)tr>
wrote:
> 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?
>
Maybe try:
Using array[mac]::macaddr[]
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Ertan Küçükoğlu | 2017-12-31 00:01:39 | RE: Change column type macaddr to macaddr[] |
Previous Message | Ertan Küçükoğlu | 2017-12-30 23:53:43 | Change column type macaddr to macaddr[] |