Re: EXTRACT broken

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: EXTRACT broken
Дата
Msg-id 3BCA7554.4BF7A573@fourpalms.org
обсуждение исходный текст
Ответ на Re: EXTRACT broken  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
> > Oh yeah. We don't have a date_part(units, time) function defined, so it
> > is getting converted to interval (which in other contexts *does* have
> > some usefulness as a "time equivalent").
> You're going to have an extremely hard time convincing me of that.

OK, thanks for the warning. I'll try later when I have more time...

> > We could fairly easily define a date_part() for the time and timetz data
> > types.
> I had figured that time would be cast to timestamp.  Which is probably
> what it used to do.

Tom Lane pointed out the problem of inferring an appropriate date for
the upcast.
                      - Thomas


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

Предыдущее
От: Bill Studenmund
Дата:
Сообщение: Re: Package support for Postgres
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: How do I get the current time in seconds in the unix