Re: greatest/least semantics different between oracle and postgres

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: greatest/least semantics different between oracle and postgres
Дата
Msg-id 87zm2heaxm.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: greatest/least semantics different between oracle and postgres  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: greatest/least semantics different between oracle and postgres  (Bruce Momjian <bruce@momjian.us>)
Re: greatest/least semantics different between oracle and postgres  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> GREATEST/LEAST aren't in the spec, so there's not much help there.
>
> Except ... if they ever do get added to the spec, what do you think
> the spec will say?  The odds it'd contradict Oracle seem about nil.

Fwiw even in the min/max/sum case the spec is moving away from having
aggregates ignore NULL values. You now get a warning in Oracle if your
aggregate includes any NULL inputs.

Actually I think it's not exactly a warning but a weird kind of non-fatal
error. You still get your result set but the driver treats it as an error
which has to be explicitly handled to see the results. I'm not entirely clear
on what's going on though. I know that there was some version of their sql
command-line tool which *didn't* handle it and therefore treated it as a fatal
error and that pissed off a lot of people. I think it now prints the warning
and the result set.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com


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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: greatest/least semantics different between oracle and postgres
Следующее
От: "Dave Page"
Дата:
Сообщение: Re: postgressqlnot support inwindows 2000