Re: How to make 'tail -f' in PostgreSQL?

From: "Jeff Boes" <jboes(at)nexcerpt(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: How to make 'tail -f' in PostgreSQL?
Date: 2001-10-03 14:21:19
Message-ID: 9pf6qc$151v$1@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

In article <3BBA0C49(dot)226148(at)sochi(dot)net(dot)ru>, "Michael B. Babakov"
<M(dot)Babakov(at)sochi(dot)net(dot)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(at)nexcerpt(dot)com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tomasz Misterka 2001-10-03 14:22:36 Re: connection versus persistent connection (fwd)
Previous Message Manuel Trujillo 2001-10-03 14:12:06 Re: Authorization problem