pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bhartendu Maheshwari <bhartendum@jataayusoft.com>
To: Postgres Mailing List <pgsql-admin@postgresql.org>
Subject: Running Postgres Daemons with same data files
Date: 09 Dec 2003 16:47:09 +0530
Message-ID: <1070968629.15674.23.camel@bharat> (raw)

Dear All,

I am working in Linux 8.0 and running postgresql 7.2. I am trying to
access same data files from the two postgres daemons. I mean there are
two PC's running with postgres and one NAS server where data files are
kept. To run postgres on the machines I first mount the NAS file system
and then run it like

shell>postmaster -D $(PATH_TO_DATA_FILE)

Daemons are running well but there is problems with synchronization of
the data files i.e when i insert some tuples in the tables its not
immediately writing then to file its kept in the cache only and when I
try to see from the other machine its displaying the old tuples. 

I want after every transaction or query the database update the data
files, how can I do this? And always read from the data files for select
operations. My main aim is no cache operation to use the postgres as
file system(for every operation file operations only), I know it will
degrade the database performance but its the requirement OR if there is
any other way by which I can achieve this, please tell me.

regards
bhartendu









view thread (22+ messages)  latest in thread

Message-ID: <1070968629.15674.23.camel@bharat>
Permalink:  ../1070968629.15674.23.camel@bharat/
Also on:    postgresql.org/message-id/1070968629.15674.23.camel@bharat

 · 

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: bhartendum@jataayusoft.com
  Subject: Re: Running Postgres Daemons with same data files
  In-Reply-To: <1070968629.15674.23.camel@bharat>
  References: <1070968629.15674.23.camel@bharat>

* 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