From: Tim Clarke <tim.clarke@minerva-analytics.info>
To: pgsql-general@lists.postgresql.org
Subject: Re: PostgreSQL intenal scheduler?
Date: Wed, 5 Sep 2018 16:09:04 +0100
Message-ID: <4c73d49a-df5a-3369-b8ec-cb8448fb62db@minerva-analytics.info> (raw)
In-Reply-To: <20180905150607.Horde.or4xIMZA8_s0hktE6pzQyHu@webmail.gelassene-pferde.biz>
References: <20180905150607.Horde.or4xIMZA8_s0hktE6pzQyHu@webmail.gelassene-pferde.biz>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tim.clarke@minerva-analytics.info
Subject: Re: PostgreSQL intenal scheduler?
In-Reply-To: <4c73d49a-df5a-3369-b8ec-cb8448fb62db@minerva-analytics.info>
References: <20180905150607.Horde.or4xIMZA8_s0hktE6pzQyHu@webmail.gelassene-pferde.biz> <4c73d49a-df5a-3369-b8ec-cb8448fb62db@minerva-analytics.info>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox