From: Jeff Boes <jboes@nexcerpt.com>
To: pgsql-admin@postgresql.org
Subject: Re: How to make 'tail -f' in PostgreSQL?
Date: Wed, 03 Oct 2001 10:21:19 -0400
Message-ID: <9pf6qc$151v$1@news.tht.net> (raw)
References: <3BBA0C49.226148@sochi.net.ru>
In article <3BBA0C49.226148@sochi.net.ru>, "Michael B. Babakov"
<M.Babakov@sochi.net.ru> wrote:
> Do you know how in PostgreSQL to do the receipt of datas in process of
> their
> entering as a programm 'tail-f' or need to check in cycle new records
> entering
> every seconds?
>
Well, this would require a sort of "continuous transaction" against a
table, which is a paradox--you only get to see the database at a given
point in time BETWEEN other transactions.
You probably want to look into the NOTIFY command. The applications
writing data could issue a NOTIFY to indicate when they have written a
row, and the applications reading data could re-run their query when they
receive a NOTIFY event.
--
Jeff Boes vox 616.226.9550
Database Engineer fax 616.349.9076
Nexcerpt, Inc. jboes@nexcerpt.com
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-admin@postgresql.org
Cc: jboes@nexcerpt.com
Subject: Re: How to make 'tail -f' in PostgreSQL?
In-Reply-To: <9pf6qc$151v$1@news.tht.net>
References: <3BBA0C49.226148@sochi.net.ru> <9pf6qc$151v$1@news.tht.net>
* 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