Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f93EYWn98857 for ; Wed, 3 Oct 2001 10:34:32 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f93EJv137954 for pgsql-admin@postgresql.org; Wed, 3 Oct 2001 10:19:57 -0400 (EDT) (envelope-from news) From: "Jeff Boes" X-Newsgroups: comp.databases.postgresql.admin Subject: Re: How to make 'tail -f' in PostgreSQL? Date: Wed, 03 Oct 2001 10:21:19 -0400 Organization: Nexcerpt, Inc. Lines: 23 Message-ID: <9pf6qc$151v$1@news.tht.net> References: <3BBA0C49.226148@sochi.net.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: scrappy@hub.org User-Agent: Pan/0.9.90 (Unix) To: pgsql-admin@postgresql.org X-Archive-Number: 200110/29 X-Sequence-Number: 2275 In article <3BBA0C49.226148@sochi.net.ru>, "Michael B. Babakov" 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