Re: Name type in postgres

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: mohsen soodkhah mohammadi <mohsensoodkhah(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Name type in postgres
Date: 2013-11-27 15:44:35
Message-ID: 16973.1385567075@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

mohsen soodkhah mohammadi <mohsensoodkhah(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2013-11-27 16:05:33 Re: Status of FDW pushdowns
Previous Message Hafez Kamal 2013-11-27 15:23:52 [HITB-Announce] #HITB2014AMS Call for Papers Now Open