Re: Accommodating alternative column values - Mailing list pgsql-general

From Rich Shepard
Subject Re: Accommodating alternative column values
Date
Msg-id 3eb9a2d3-28c-9066-d3b5-fd6cca32af9@appl-ecosys.com
Whole thread Raw
In response to Re: Accommodating alternative column values  (Rich Shepard <rshepard@appl-ecosys.com>)
Responses Re: Accommodating alternative column values
Re: Accommodating alternative column values
List pgsql-general
On Wed, 3 Jul 2024, Rich Shepard wrote:

> What I've tried:
> bustrac=# alter table people alter column email set data type varchar(64) [];
> ERROR:  column "email" cannot be cast automatically to type character 
> varying[]
> HINT:  You might need to specify "USING email::character varying(64)[]".

What I forgot to mention is that the current datatype is varchar(64) and I
want to make it an array.

Rich



pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Accommodating alternative column values
Next
From: Torsten Förtsch
Date:
Subject: Re: Accommodating alternative column values