Field with character varying (255) - Mailing list pgsql-novice

From Christopher A. Goodfellow
Subject Field with character varying (255)
Date
Msg-id 004901c42bae$561d9660$030a640a@tealuxe.com
Whole thread Raw
Responses Re: Field with character varying (255)
List pgsql-novice
I have a table with a field set to character varying (255).  When an insert
is executed with a value for this field greater than 255 characters, an
error is generated rather than the input being truncated as stated in the
postgresql docs.

  Postgresql version 7.3.2.

  This problem did not occur in postgresql version 6.5 and the values were
truncated.


Output from \d of the filed in question below....

  Column     |        Type                   |                Modifiers
---------------+------------------------+-----------------------------------
------------------------
questions    | character varying(255) |


Thank You,
Christopher A. Goodfellow
Director of Information Technology
Tealuxe, Inc.
Phone: 508 520 7887 ex:22
Fax: 508 528 8999
www.tealuxe.com
tea for all



pgsql-novice by date:

Previous
From: Joe Conway
Date:
Subject: Re: comma separated value splitting
Next
From: Stephan Szabo
Date:
Subject: Re: access information_schema