Received: from stine.vestdata.no (stine.vestdata.no [195.204.68.10]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eAUBrNt21854 for ; Thu, 30 Nov 2000 06:53:24 -0500 (EST) (envelope-from ragnark@stine.vestdata.no) Received: (from ragnark@localhost) by stine.vestdata.no (8.9.3/8.9.3) id MAA24099; Thu, 30 Nov 2000 12:53:14 +0100 Date: Thu, 30 Nov 2000 12:53:13 +0100 From: =?iso-8859-1?Q?Ragnar_Kj=F8rstad?= To: hamptone Cc: pgsql-admin@postgresql.org Subject: Re: Redundant databases/real-time backup Message-ID: <20001130125312.C22723@vestdata.no> References: <00111611404600.18526@dennis.veritime.com> <20001123172837.B4343@vestdata.no> <006b01c05aa4$b4cacd60$e6211e18@mw.mediaone.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.95.5i In-Reply-To: <006b01c05aa4$b4cacd60$e6211e18@mw.mediaone.net>; from hamptone on Thu, Nov 30, 2000 at 12:08:20AM -0800 X-Archive-Number: 200011/176 X-Sequence-Number: 185 On Thu, Nov 30, 2000 at 12:08:20AM -0800, hamptone wrote: > > [ about processing the postgresql log ] > > Thanks for the tips Ragnar...although I wish you would explain more about > FIFO. The only thing that rings a bell on this is First In First Out from > the inventory chaper of my accounting textbook..... I guess you're familiar with pipes? like: cat logfile | program a FIFO is pretty much the same thing, only it has a filename. This mean a process can write to the FIFO thinking it's writing to a regular file, and another process can read from the FIFO thinking it's reading from a regular file. This makes it possible to process the file in realtime instead of in batch, if you choose to. If you use a FIFO, your postgresql process will block if there is nothing actually reading from the FIFO. This means two things: 1. If the program processing the logfile dies, postgresql die too. 2. The postgresql server can't work faster than your logfile processer. But the good news is your backupserver will always be up-to-date. -- Ragnar Kjørstad