Re: PostGreSQL and recursive queries...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PostGreSQL and recursive queries...
Дата
Msg-id 11296.1196483824@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PostGreSQL and recursive queries...  (Sam Mason <sam@samason.me.uk>)
Список pgsql-hackers
Sam Mason <sam@samason.me.uk> writes:
> Sounds as though you need some sort of type inference algorithm.  There
> are quite a few decidable ones around, the one by Hindley-Milner being
> very popular/common.  Decidable means you get the correct answer out in
> a reasonable amount of time or it fails, and, barring implementation
> bugs, it'll never get stuck trying to figure out what you meant.

I think some closer reading of the SQL spec might be called for.
I'm pretty sure the spec authors did not intend to require any
especially abstruse algorithm to infer the types involved in a recursive
query.  In fact, if they have not completely abandoned their duty as
spec writers, the spec itself should spell out any algorithms required
to determine the meaning of a query.  (As distinct from algorithms
needed to produce an efficient implementation, which is a topic outside
the purview of the spec.  But "what type is this result column" is
surely something the spec is required to define.)
        regards, tom lane


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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: 8.3 beta testing suggestions welcome
Следующее
От: "Jaime Casanova"
Дата:
Сообщение: compiling postgres in winxp