Re: Delimited identifier length

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Delimited identifier length
Date: 2000-10-04 03:14:49
Message-ID: 2382.970629289@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Tom Lane writes:
>> Next question is do we want to change it? I can't imagine any real good
>> use for a null-string name, but is there any risk of breaking existing
>> applications?

> I think the larger risk is breaking applications if we leave it this way.

[... cogitates ...] Yeah, you're probably right. I agree with changing
it --- any other objectors out there?

> OTOH, I'd suggest that we do not enforce the 128 maximum length mandated
> by SQL. :-)

Check. Not that I want to set NAMEDATALEN to 129, mind you ... but
I feel that *silent* truncation of overlength identifiers is good
programming language style. At the moment I seem to be outvoted:

regression=# create table z1234567890123456789012345678901234567890 (f1 int);
NOTICE: identifier "z1234567890123456789012345678901234567890" will be truncated to "z123456789012345678901234567890"
CREATE

but I will vote to remove that notice if it comes to a vote again.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-10-04 03:33:25 Re: [INTERFACES] C++ client libs
Previous Message Don Baccus 2000-10-04 03:13:52 Re: FW: oracle ate