Re: [SQL] Reasonable - Mailing list pgsql-sql

From Tom Lane
Subject Re: [SQL] Reasonable
Date
Msg-id 12586.939165010@sss.pgh.pa.us
Whole thread Raw
In response to Re: [SQL] Reasonable  (Herouth Maoz <herouth@oumail.openu.ac.il>)
List pgsql-sql
Herouth Maoz <herouth@oumail.openu.ac.il> writes:
> Another potential problem is your use of a six-letter long default for a
> varying(1) field ("status").

6.5.* has some problems with wrong-length default values for char(n) and
varchar(n) fields.  There is a slightly klugy fix in place for char(n),
but a cursory test suggests that it doesn't catch the varchar case.
The consequences aren't as bad as they were for char(n): you just get
a field value that's longer than it's supposed to be.  Workaround:
give a correct default value.

This is all fixed properly in current sources (6.6/7.0-to-be).
        regards, tom lane


pgsql-sql by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: [SQL] Collate sequences
Next
From: Sergey Bondarenko
Date:
Subject: Re: [SQL] 2 Aktions in a Rule