Re: Plpgsql - Custom fields Postgres 9.5

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: Patrick B <patrickbakerbr(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Plpgsql - Custom fields Postgres 9.5
Date: 2016-12-15 16:47:48
Message-ID: CAMkU=1z==UrditQ75EGa6WrMrVMSOsOUDQ_TyZ9kOVzHzYD7kg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Dec 14, 2016 at 1:17 PM, Patrick B <patrickbakerbr(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jan de Visser 2016-12-15 17:04:43 Re: pg_dump and quoted identifiers
Previous Message Richard Brosnahan 2016-12-15 16:42:13 PostgreSQL mirroring from RPM install to Source install