Re: PostgreSQL intenal scheduler?

From: Tim Clarke <tim(dot)clarke(at)minerva-analytics(dot)info>
To: <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: PostgreSQL intenal scheduler?
Date: 2018-09-05 15:09:04
Message-ID: 4c73d49a-df5a-3369-b8ec-cb8448fb62db@minerva-analytics.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 05/09/18 16:06, Thiemo Kellner wrote:
>
> Hi all
>
> I am designing a framework for historisation implementation (SCD). One
> feature I would like to provide is a table in that the actual state of
> an entity is put and if this is complete, this history table is
> "updated":
>
>       ------------         -------------
> ==>  | ENTITY_ACT |  ==>  | ENTITY_HIST |
>       ------------         -------------
>
> I plan to use instead-of-triggers on the hist table that read the
> actual table and perfoms all necessary inserts und updates on the
> history table. If I want the termination of a record version (actually
> the record of a specific business key with a specific payload) to get
> propagated up and/or down referential integrities (no overlapping
> validities) I have to make sure that only one of those processes is
> modifying a table. I was thinking of a scheduler queue where the
> trigger would put a process request and PostgreSQL would work through.
> Is there a scheduler within PostgreSQL? I read the documentation and
> searched the web but could not find a hint. But before going another
> road or implementing something myself, I ask. Maybe this design is no
> good at all.
>
> Kind regards
>
> Thiemo
>
>

Why not just call your "do a scheduled run" code from cron?

Tim Clarke

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2018-09-05 15:31:42 Re: PostgreSQL intenal scheduler?
Previous Message Thiemo Kellner 2018-09-05 15:06:07 PostgreSQL intenal scheduler?