X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C2164D1B49B for ; Tue, 9 Dec 2003 12:47:37 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 22215-04 for ; Tue, 9 Dec 2003 08:47:09 -0400 (AST) Received: from mail.ezi.de (unknown [194.115.2.181]) by svr1.postgresql.org (Postfix) with ESMTP id 404EAD1B480 for ; Tue, 9 Dec 2003 08:47:05 -0400 (AST) Received: from notes1.ezi.de (unknown [192.168.150.15]) by mail.ezi.de (Primary Mailpath Linux) with ESMTP id BF21A2A05C for ; Tue, 9 Dec 2003 13:43:22 +0100 (CET) Received: from dv-08.intern.ezi.de ([192.168.150.109]) by notes1.ezi.de (Lotus Domino Release 5.0.6a) with ESMTP id 2003120913464018:13655 ; Tue, 9 Dec 2003 13:46:40 +0100 Received: by dv-08.intern.ezi.de (Frank sein lokaler Mehlserbe #Postfix on SuSE Linux 8.0 (i386), from userid 578) id CFBD03BC277; Tue, 9 Dec 2003 13:47:05 +0100 (CET) Date: Tue, 9 Dec 2003 13:47:05 +0100 From: Frank Finner To: pgsql-admin@postgresql.org Subject: Re: Running Postgres Daemons with same data files Message-Id: <20031209134705.1edcad79.postgresql@finner.de> In-Reply-To: <1070973212.16487.31.camel@bharat> References: <1070968629.15674.23.camel@bharat> <1070973212.16487.31.camel@bharat> Organization: EZI GmbH X-Mailer: Sylpheed version 0.8.10claws72 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Prod1/SRV/Haiger/EZI/DE(Release 5.0.6a |January 17, 2001) at 09.12.2003 13:46:40, Serialize by Router on Prod1/SRV/Haiger/EZI/DE(Release 5.0.6a |January 17, 2001) at 09.12.2003 13:46:41, Serialize complete at 09.12.2003 13:46:41 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/101 X-Sequence-Number: 11609 On Tue, 9 Dec 2003 18:03:31 +0530 pgsql-admin-owner@postgresql.org wrote: > Dear Sam, >=20 > Thank you for the quick response. >=20 > 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. >=20 > 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=B4s next to do an operation. Just connect to it with several clients and work with these. Regards, Frank.