Re: Is it possible to use keywords (date units) in a functiondefinition?

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Is it possible to use keywords (date units) in a functiondefinition?
Дата
Msg-id e5e9dcdf-2d71-a6d0-693a-125f5dd64cce@aklaver.com
обсуждение исходный текст
Ответ на Re: Is it possible to use keywords (date units) in a function definition?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
On 6/8/20 3:10 PM, David G. Johnston wrote:
> On Mon, Jun 8, 2020 at 2:57 PM Alistair Johnson <aewj@mit.edu 
> <mailto:aewj@mit.edu>> wrote:
> 
> 
>     RETURN EXTRACT(datepart FROM end - start);
>     Any ideas? Is this even possible?
> 
> 
> Use the "date_part" function.

That would work on the Postgres side, but the OP also wants this to run 
on BigQuery and unfortunately it won't work there.

> 
> David J.


-- 
Adrian Klaver
adrian.klaver@aklaver.com



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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Concurrenctly running CREATE TEMP TABLE IF NOT EXISTS [...] AS[...]
Следующее
От: David Rowley
Дата:
Сообщение: Re: "INSERT ON CONFLICT UPDATE" - Use of indexes ?