[HACKERS] Truncation of identifiers

2016-01-13 Thread Thomas Munro
Hi hackers Wouldn't it be better to raise an error when identifiers are too long, rather than accepting but truncating them? I'm not aware of any other database that does this. If you're using oversized identifiers you could finish up using more than one way to refer to the same database

Re: [HACKERS] Truncation of identifiers

2016-01-13 Thread Tom Lane
Thomas Munro writes: > Wouldn't it be better to raise an error when identifiers are too long, > rather than accepting but truncating them? I wouldn't think so. > I'm not aware of any other database that does this. It's standard practice in most programming

Re: [HACKERS] Truncation of identifiers

2016-01-13 Thread Gavin Flower
On 14/01/16 13:05, Tom Lane wrote: Thomas Munro writes: Wouldn't it be better to raise an error when identifiers are too long, rather than accepting but truncating them? I wouldn't think so. I'm not aware of any other database that does this. It's standard