X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 34DA730E242 for ; Sat, 14 Jun 2003 07:20:48 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 85358-02 for ; Sat, 14 Jun 2003 04:20:12 -0300 (ADT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by svr1.postgresql.org (Postfix) with ESMTP id 42D2B30E243 for ; Sat, 14 Jun 2003 04:20:08 -0300 (ADT) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19R5Hx-0000KZ-00 for ; Sat, 14 Jun 2003 09:17:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19R5HP-0000JK-00 for ; Sat, 14 Jun 2003 09:16:51 +0200 From: "Daniel Seichter" Subject: Re: Run 4 postgresql session on ONE server? Date: Sat, 14 Jun 2003 09:20:15 +0200 Lines: 21 Message-ID: References: X-Complaints-To: usenet@main.gmane.org X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Archive-Number: 200306/149 X-Sequence-Number: 9140 Good morning, > Yes, you can do it. All you have to do is create four seperate accounts > for it to run under (pgsql1, pgsql2, pgsql3, pgsql4) and then in each of > those accounts, set up a different PGDATA value and initdb as that user. > Then edit each account's postgresql.conf to have a different port number > (I just incremented from 5432 to 5433 etc...) and start them up. Well, it looks easy *g* I will do this today and hope, it work. > Then when you connect just specify the port of the database instance you > need. Since each one is running as a different user with different > postgresql.conf and pg_hba.conf files you can lock the production instance > down tight to prevent brain farts (oops, I just dropped a table in the > production database) and you're gold. Ok, at the moment , I only can say: thank you, and I had to test it during this weekend to start at the next week with the configuration. Daniel