Re: Why does this not work? - Mailing list pgsql-general

From Marin Dimitrov
Subject Re: Why does this not work?
Date
Msg-id 001b01c1e188$2a5463a0$9b0e32d4@sirma.bg
Whole thread Raw
In response to Re: Why does this not work?  ("Johann Zuschlag" <zuschlag@online.de>)
List pgsql-general
----- Original Message -----
From: "Johann Zuschlag"

>
> Is there a solution for such a problem?
> Let's assume you can't be sure whether you get
> the appropriate length in an insert.
>

what about changing the column from varchar to text?

size shouldn't be an issue and your trigger will be able to cut the content
to the desired length


hth,

    Marin

----
"...what you brought from your past, is of no use in your present. When
you must choose a new path, do not bring old experiences with you.
Those who strike out afresh, but who attempt to retain a little of the
old life, end up torn apart by their own memories. "




pgsql-general by date:

Previous
From: "craig isdahl"
Date:
Subject: where to find info about data types?
Next
From: Tom Lane
Date:
Subject: Re: Why does this not work?