Re: Implicit coercions, choosing types for constants, etc (yet again)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Implicit coercions, choosing types for constants, etc (yet again)
Дата
Msg-id 2710.1037033795@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Implicit coercions, choosing types for constants, etc  (Dennis Björklund <db@zigo.dhs.org>)
Список pgsql-hackers
Dennis Björklund <db@zigo.dhs.org> writes:
> It seems to me that one would like to have a polymorphic typesystem with 
> constraints to handle overloading, subtyping or whatever is needed in 
> SQL.

What we have now is indeed pretty ad-hoc, but a full-blown type
inference system might be overkill.  Not sure.  It would be interesting
to look into it.

> Is there anywhere I can read about the typesystem in SQL in general and 
> postgresql in particular?

There's the user's guide
http://developer.postgresql.org/docs/postgres/typeconv.html
and there's the source code (see src/backend/parser/, particularly
parse_coerce.c, parse_func.c, parse_oper.c).  Not much in between
I'm afraid, but the source code is reasonably well-commented.
        regards, tom lane


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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: PQescapeBytea v 7.2.3 BUG?
Следующее
От: "Robert E. Bruccoleri"
Дата:
Сообщение: Re: Problem with 7.3 on Irix with dates before 1970