Re: [HACKERS] defalut value - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: [HACKERS] defalut value
Date
Msg-id 37399E78.7F8B76A3@alumni.caltech.edu
Whole thread Raw
In response to Re: [HACKERS] defalut value  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> I think somehow, somewhere, the size of the default value is getting
> used instead of the size of the field itself.  Weird.  Is it specific
> to char(n), perhaps?  That might help explain how the bug got past
> the regression tests.

I'm pretty sure it is specific to char(n), and it is due to the 4 byte
difference in length between the string and the storage. When we fix
this one we will also fix the "c char(2) default ''" problem too.

In fact, I could have sworn I already had looked at it. Oh well.
                        - Tom

-- 
Thomas Lockhart                lockhart@alumni.caltech.edu
South Pasadena, California


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] Re: [SQL] plpgsql error
Next
From: jwieck@debis.com (Jan Wieck)
Date:
Subject: Re: [HACKERS] Update Open Items list