pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ertan Küçükoðlu <ertan.kucukoglu@1nar.com.tr>
To: pgsql-general@postgresql.org
Subject: Change column type macaddr to macaddr[]
Date: Sun, 31 Dec 2017 02:53:43 +0300
Message-ID: <002401d381c9$6cde3d70$469ab850$@1nar.com.tr> (raw)

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






view thread (3+ messages)  latest in thread

Message-ID: <002401d381c9$6cde3d70$469ab850$@1nar.com.tr>
Permalink:  ../002401d381c9$6cde3d70$469ab850$@1nar.com.tr/
Also on:    postgresql.org/message-id/002401d381c9$6cde3d70$469ab850$@1nar.com.tr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ertan.kucukoglu@1nar.com.tr
  Subject: Re: Change column type macaddr to macaddr[]
  In-Reply-To: <002401d381c9$6cde3d70$469ab850$@1nar.com.tr>
  References: <002401d381c9$6cde3d70$469ab850$@1nar.com.tr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox