Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 776502E01B8 for ; Fri, 8 Feb 2008 18:06:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 19515-01 for ; Fri, 8 Feb 2008 18:06:13 -0400 (AST) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by postgresql.org (Postfix) with ESMTP id 6EB252E017D for ; Fri, 8 Feb 2008 18:06:09 -0400 (AST) Received: by wa-out-1112.google.com with SMTP id m38so795856waf.5 for ; Fri, 08 Feb 2008 14:06:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Lx3dtGmZJSiBjscDryxVLLLPPcHcK431V1LxqmgZJDk=; b=Moa36LFaakunKMwXzbFwGHZ6br/ylAumx8UJNCimAQ/CRewLr4HgDXvstd2qvpVUsIOMsnKZla4J5yisIdocnUbp089meBVFYARgVESBOtqMHDa4Qx5d3IoEHWS7SrPDQYRso1FbZiEqsmjdNNcV2TaRWOg69ZHke2ZYk6/d1RE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cU0tZU4Mhe9Yx8LJcfzrBLuRpGIEf3UbhaqJiGK+FAzDzX8u6q9VkcfoO7gTcBZKqAgLkMYPKi4tUg+eT3QOBnmLbNa4P+Wih7CHp4fQcLsn4pnzusYv1BcqKiBVXDuLyJGjyQJAfA0KJeJxNbiaaFa9I4bbVMBtjJ4jTEPSAhc= Received: by 10.114.150.1 with SMTP id x1mr8121400wad.145.1202508368191; Fri, 08 Feb 2008 14:06:08 -0800 (PST) Received: by 10.114.199.20 with HTTP; Fri, 8 Feb 2008 14:06:08 -0800 (PST) Message-ID: <4544e0330802081406h67ffa843p546a86be1f908e5e@mail.gmail.com> Date: Fri, 8 Feb 2008 16:06:08 -0600 From: "Peter Koczan" To: "Vishal Arora" Subject: Re: Multiple postgresql serices on same windows machine.. Cc: "Anoo Sivadasan Pillai" , pgsql-admin@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <772CDA49C515244FA14E34443F62E56403E6D45B@EX-INDIA1.internal.rmplc.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/110 X-Sequence-Number: 28184 On Feb 7, 2008 11:27 PM, Vishal Arora wrote: > You can have more than one instance of PostgreSQL server running on the same > Windows machine as long as you have different DataDir for each of them. you > can have initdb process indicating different datadir. And you need each instance (or cluster, as it's usually called in postgresql lingo) to listen on a different port. Be careful when doing this because multiple clusters don't play nice with resources like shared memory. Anoo, with the usage scenario you suggested, couldn't you just create some roles in the database cluster, and create new databases? For example, you could, - Create the database "app_a_db" and the role "app_a" (with a properly encrypted password) for Application A. Application A connects to the server as user "app_a" and does its work in "app_a_db". - Create the database "app_b_db" and the role "app_b" (with a properly encrypted password) for Application B. Application A connects to the server as user "app_b" and does its work in "app_b_db". app_a doesn't know the password of app_b, and vice-versa, and neither knows the Windows system passwords for postgres or ServiceAccount. Since they're working in different databases, they won't interfere with each other's data. And, you only have to maintain one cluster/server instead of two. If it turns out that this doesn't meet your needs, then a separate cluster is the way to go. I'm just giving you another option. Hope this helps. Peter