Re: varchar(n) VS text

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Paul Lambert <paul(dot)lambert(at)autoledgers(dot)com(dot)au>
Cc: Michael Glaesemann <grzm(at)seespotcode(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: varchar(n) VS text
Date: 2007-06-28 01:36:00
Message-ID: 20070628013559.GE561@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Paul Lambert wrote:

> Looks like my bad - I created the table initially through pgAdminIII and
> it appears I selected the wrong character varying from the dropdown list.
>
> CREATE TABLE tester
> (
> test_varchar character varying[],
> test_text text
> )
>
> If I change it to character varying(20) it works fine.

Yeah, what you chose is an array of varchar.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Matthew O'Connor 2007-06-28 04:05:53 Re: autovacumm not working ?
Previous Message Paul Lambert 2007-06-28 01:20:31 Re: varchar(n) VS text