How to cast a char[] to varchar? - Mailing list pgsql-general

From Jon Lapham
Subject How to cast a char[] to varchar?
Date
Msg-id 3C39B0FC.8060709@extracta.com.br
Whole thread Raw
Responses Re: How to cast a char[] to varchar?
List pgsql-general
I have a column defined as "char(3)[]" which I would like to copy into a
different column defined as "varchar(255)".

I've tried to cast the char(3)[] field using "CAST( ... as varchar)" but
I get an error message, "Cannot cast type '_bpchar' to 'varchar'".

Any suggestions?

--

-**-*-*---*-*---*-*---*-----*-*-----*---*-*---*-----*-----*-*-----*---
  Jon Lapham
  Extracta Moléculas Naturais, Rio de Janeiro, Brasil
  email: lapham@extracta.com.br      web: http://www.extracta.com.br/
***-*--*----*-------*------------*--------------------*---------------


pgsql-general by date:

Previous
From: "Arsalan Zaidi"
Date:
Subject: Re: Turning off transactions completely.
Next
From: "Arsalan Zaidi"
Date:
Subject: Re: Turning off transactions completely.