Re: Name type in postgres - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Name type in postgres
Date
Msg-id 16973.1385567075@sss.pgh.pa.us
Whole thread Raw
In response to Name type in postgres  (mohsen soodkhah mohammadi <mohsensoodkhah@gmail.com>)
List pgsql-hackers
mohsen soodkhah mohammadi <mohsensoodkhah@gmail.com> writes:
> I want do understand that did can we have name without null-terminator?

No.  Possibly that was the original intention, but for many years the
system has enforced that Name contains at least one trailing null byte, ie
the maximum usable length of identifiers is NAMEDATALEN-1.  So the code
you quote is valid.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Hafez Kamal
Date:
Subject: [HITB-Announce] #HITB2014AMS Call for Papers Now Open
Next
From: Merlin Moncure
Date:
Subject: Re: Status of FDW pushdowns