Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL);
От
Tom Lane
Тема
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL);
Дата
Msg-id
3749306.1708222748@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); PG Bug reporting form <noreply@postgresql.org>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); David Rowley <dgrowleyml@gmail.com>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); jian he <jian.universality@gmail.com>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); Michael Bondarenko <work.michael.2956@gmail.com>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); Francisco Olarte <folarte@peoplecall.com>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); jian he <jian.universality@gmail.com>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); jian he <jian.universality@gmail.com>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); jian he <jian.universality@gmail.com>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); Tom Lane <tgl@sss.pgh.pa.us>
BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); "Wetmore, Matthew (CTR)" <Matthew.Wetmore@evernorth.com>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); jian he <jian.universality@gmail.com>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); jian he <jian.universality@gmail.com>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); Michael Bondarenko <work.michael.2956@gmail.com>
Re: BUG #18348: Inconsistency with EXTRACT([field] from INTERVAL); David Rowley <dgrowleyml@gmail.com>
jian he writes: > you already mentioned "Not all fields are valid for every input data type". > interval data type don't even have a unit "quarter", > so the following should generate an error? > select extract(quarter from interval '2011 year 12 month 48 hour > 1005min 2 sec 11 ms'); I'm not especially persuaded by that reasoning. Intervals don't have century or millisecond fields either, but we allow extracting those. If your argument is that we shouldn't allow it because we don't take the input INTERVAL '1 quarter', I'd be much more inclined to add that as valid input than to take away existing extract functionality. But I'm dubious about the proposition that extract's list of valid fields should exactly match the set of allowed input units. The semantics aren't really the same (as per the '80 minutes' example) so such a restriction doesn't seem to have much basis in reality. regards, tom lane
В списке pgsql-bugs по дате отправления
От: adfile@aol.com
Дата:
От: David Rowley
Дата: