Re: Accommodating alternative column values [RESOLVED]

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Accommodating alternative column values [RESOLVED]
Date: 2024-07-03 15:12:32
Message-ID: 27548f14-d1b6-e37c-574f-47d78293b765@appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 3 Jul 2024, Adrian Klaver wrote:

> alter table array_conv alter column email type varchar[] using array[email];
>
> select * from array_conv ;
> id | email
> ----+-----------------------------
> 1 | {adrian(dot)klaver(at)aklaver(dot)com}
> 2 | {aklaver(at)example(dot)com}

Adrian,

Given my inexperience with arrays this seems to be the simplest of all
offered syntaxes.

Another valuable postgres lesson learned.

Much appreciated,

Rich

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2024-07-03 15:55:01 Re: printing PGresult content with gdb
Previous Message Adrian Klaver 2024-07-03 14:39:03 Re: Accommodating alternative column values