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 DD9B6D1B46A for ; Tue, 9 Dec 2003 11:12:28 +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 06452-05 for ; Tue, 9 Dec 2003 07:11:59 -0400 (AST) Received: from orion.integramicro.co.in (unknown [203.200.36.34]) by svr1.postgresql.org (Postfix) with ESMTP id 08FD0D1B439 for ; Tue, 9 Dec 2003 07:11:55 -0400 (AST) Received: (from root@localhost) by orion.integramicro.co.in (8.11.2/8.11.2) id hB9B9cf25171 for pgsql-admin@postgresql.org; Tue, 9 Dec 2003 16:39:38 +0530 Received: from bharat ([192.10.2.39]) by orion.integramicro.co.in (8.11.2/8.11.2) with ESMTP id hB9B9bq25105 for ; Tue, 9 Dec 2003 16:39:37 +0530 Subject: Running Postgres Daemons with same data files From: Bhartendu Maheshwari To: Postgres Mailing List X-scanner: scanned by mail Scanner Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) Date: 09 Dec 2003 16:47:09 +0530 Message-Id: <1070968629.15674.23.camel@bharat> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/97 X-Sequence-Number: 11605 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