Re: NAME maximum length in _bytes_

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL-documentation <pgsql-docs(at)postgresql(dot)org>
Subject: Re: NAME maximum length in _bytes_
Date: 2012-05-10 22:45:37
Message-ID: 20120510224537.GE16881@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Tue, May 08, 2012 at 05:13:45PM -0400, Bruce Momjian wrote:
> psql \dTS+ shows for data type 'name':
>
> pg_catalog | name | name | 64 | |
> | 63-character type for storing system identifiers
>
> I believe this is really 63 bytes, not characters. I also see it
> mismatched in our docs:
>
> in the internal system catalogs and is not intended for use by the general user. Its
> length is currently defined as 64 bytes (63 usable characters plus
> ----------
> terminator) but should be referenced using the constant
> <symbol>NAMEDATALEN</symbol> in <literal>C</> source code.
>
> Should I fix this?

Fix applied; no catalog bump.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2012-05-11 03:05:32 Re: Confusing section of 'Setting Parameters'
Previous Message Peter Eisentraut 2012-05-10 18:00:37 Re: Capitalization of 'TimeZone' GUC