Re: On hardcoded type aliases and typmod for user types - Mailing list pgsql-hackers

From Tom Lane
Subject Re: On hardcoded type aliases and typmod for user types
Date
Msg-id 21187.1125590935@sss.pgh.pa.us
Whole thread Raw
In response to Re: On hardcoded type aliases and typmod for user types  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> writes:
> On Thu, Sep 01, 2005 at 08:50:27AM -0400, Tom Lane wrote:
>> varchar could do something like using 24 bits for the length
>> and 8 bits for an encoded indication of the charset.

> With the unfortunate effect that strings are limited to 16Mb instead of
> 1Gb.

No, only that you can't declare a specific maxlength for a varchar that
exceeds 16Mb ... and guess what, there is already a smaller limit than
that, on the grounds that if a user writes varchar(1000000000) he needs
a cluebat anyway.  I think you might have momentarily confused typmod
with the varlena length word of an individual value.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Remove xmin and cmin from frozen tuples
Next
From: Matt Miller
Date:
Subject: PG_PAGE_LAYOUT_VERSION - Should be Documented as 3?