Re: [GENERAL] Plpgsql - Custom fields Postgres 9.5

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: [GENERAL] Plpgsql - Custom fields Postgres 9.5
Дата
Msg-id CAMkU=1z==UrditQ75EGa6WrMrVMSOsOUDQ_TyZ9kOVzHzYD7kg@mail.gmail.com
обсуждение исходный текст
Ответ на [GENERAL] Plpgsql - Custom fields Postgres 9.5  (Patrick B <patrickbakerbr@gmail.com>)
Список pgsql-general
On Wed, Dec 14, 2016 at 1:17 PM, Patrick B <patrickbakerbr@gmail.com> wrote:


2. To call the function, I have to login to postgres and then run: select logextract(201612015, 201612015);
How can I do it on cron? because the dates will be different every time.

PostgreSQL already knows what date today is.  Why does cron have to tell it?  Just do 'select logextract()' and let Postgresql compute the dates for itself.

Cheers,

Jeff

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

Предыдущее
От: Richard Brosnahan
Дата:
Сообщение: [GENERAL] PostgreSQL mirroring from RPM install to Source install
Следующее
От: Jan de Visser
Дата:
Сообщение: Re: [GENERAL] pg_dump and quoted identifiers