Re: Fwd: Proposal: variant of regclass

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Fwd: Proposal: variant of regclass
Дата
Msg-id 20140407171826.GA7352@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: Fwd: Proposal: variant of regclass  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2014-04-07 12:59:36 -0400, Tom Lane wrote:
> Andres Freund <andres@2ndquadrant.com> writes:
> > There's actually another good reason to not copy regclass's behaviour:
> 
> > postgres=# CREATE TABLE "123"();
> > CREATE TABLE
> > postgres=# SELECT '123'::regclass;
> >  regclass
> >  ----------
> >   123
> >   (1 row)
> 
> > I don't think that's fixable for ::regclass, but we shouldn't copy it.
> 
> I think that's not proving what you thought; the case is correctly handled
> if you quote:

I know, but it's a pretty easy to make mistake. Many if not most of the
usages of regclass I have seen were wrong in that way.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Fwd: Proposal: variant of regclass
Следующее
От: Robert Haas
Дата:
Сообщение: Re: B-Tree support function number 3 (strxfrm() optimization)