pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank Finner <postgresql@finner.de>
To: pgsql-admin@postgresql.org
Subject: Re: Running Postgres Daemons with same data files
Date: Tue, 9 Dec 2003 13:47:05 +0100
Message-ID: <20031209134705.1edcad79.postgresql@finner.de> (raw)
In-Reply-To: <1070973212.16487.31.camel@bharat>
References: <1070968629.15674.23.camel@bharat>
	<Pine.LNX.4.50.0312091142210.2489-100000@short.lancs.ac.uk>
	<1070973212.16487.31.camel@bharat>

On Tue, 9 Dec 2003 18:03:31 +0530
pgsql-admin-owner@postgresql.org wrote:

> Dear Sam,
> 
> Thank you for the quick response.
> 
> Can I you tell me why its not possible, it is possible with mysql then
> why not with postgres. Actually I am working on High Avaibility
> framework, and its our need, we can't make a separate database server.
> I want to read/write and then close the file, very simple isn't? So
> how can I achieve in postgres? Please help me.
> 
> regards
> bhartendu
>

It seems MySQL tries every attempt to crash a database.

Seriously: What do you think will happen to the database files, if you
try to insert/update on the same files at the same time from two
different engines? Exactly: This would not only crash a database, this
would shatter it to thousands of pieces, not recoverable.

Even if you do only SELECTS from one engine, this cannot be synchronized
in any way. And by the way: What reason do you have for another engine
just doing selects? Why not use a client connecting to the one and only
engine, which can do everything (INSERTs, UPDATEs, SELECTs) at (nearly)
the same time? This is not XBase, where you have to look after locking
yourself - let the engine do the dirty work like file locking and
determine, who´s next to do an operation. Just connect to it with
several clients and work with these.

Regards, Frank.



view thread (22+ messages)  latest in thread

Message-ID: <20031209134705.1edcad79.postgresql@finner.de>
Permalink:  ../20031209134705.1edcad79.postgresql@finner.de/
Also on:    postgresql.org/message-id/20031209134705.1edcad79.postgresql@finner.de

 · 

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: postgresql@finner.de
  Subject: Re: Running Postgres Daemons with same data files
  In-Reply-To: <20031209134705.1edcad79.postgresql@finner.de>
  References: <1070968629.15674.23.camel@bharat> <Pine.LNX.4.50.0312091142210.2489-100000@short.lancs.ac.uk> <1070973212.16487.31.camel@bharat> <20031209134705.1edcad79.postgresql@finner.de>

* 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