pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ragnar Kjørstad <postgres@ragnark.vestdata.no>
To: hamptone <hamptone@mediaone.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Redundant databases/real-time backup
Date: Thu, 30 Nov 2000 12:53:13 +0100
Message-ID: <20001130125312.C22723@vestdata.no> (raw)
In-Reply-To: <006b01c05aa4$b4cacd60$e6211e18@mw.mediaone.net>
References: <00111611404600.18526@dennis.veritime.com>
	<20001123172837.B4343@vestdata.no>
	<006b01c05aa4$b4cacd60$e6211e18@mw.mediaone.net>

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



view thread (7+ messages)  latest in thread

Message-ID: <20001130125312.C22723@vestdata.no>
Permalink:  ../20001130125312.C22723@vestdata.no/
Also on:    postgresql.org/message-id/20001130125312.C22723@vestdata.no

 · 

reply

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: postgres@ragnark.vestdata.no, hamptone@mediaone.net
  Subject: Re: Redundant databases/real-time backup
  In-Reply-To: <20001130125312.C22723@vestdata.no>
  References: <00111611404600.18526@dennis.veritime.com> <20001123172837.B4343@vestdata.no> <006b01c05aa4$b4cacd60$e6211e18@mw.mediaone.net> <20001130125312.C22723@vestdata.no>

* 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