X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 34F1E9F9CAA for ; Thu, 15 Jun 2006 12:04:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 09631-01 for ; Thu, 15 Jun 2006 12:04:05 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 7209C9FA5BA for ; Thu, 15 Jun 2006 12:04:04 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id A26EC3093C; Thu, 15 Jun 2006 17:04:03 +0200 (MET DST) From: Chris Browne X-Newsgroups: pgsql.performance Subject: Re: Is it possible to start two instances of postgresql? Date: Thu, 15 Jun 2006 11:01:51 -0400 Organization: cbbrowne Computing Inc Lines: 26 Message-ID: <60mzcetqcg.fsf@dba2.int.libertyrms.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (linux) Cancel-Lock: sha1:9wyS6gkrhlOfvtWG1jSRVuuoRbE= To: pgsql-performance@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/304 X-Sequence-Number: 19661 kah_hang_ang@toray.com.my writes: > Is it possible to start two instances of postgresql with different port and > directory which run simultaneously? Certainly. We have one HACMP cluster which hosts 14 PostgreSQL instances across two physical boxes. (If one went down, they'd all migrate to the survivor...) > If can then will this cause any problem or performance drop down? There certainly can be; the databases will be sharing disks, memory, and CPUs, so if they are avidly competing for resources, the competition is sure to have some impact on performance. Flip side: That 14 database cluster has several databases that are known to be very lightly used; they *aren't* competing, and aren't a problem. Consider it obvious that if you haven't enough memory or I/O bandwidth to cover your two PG instances, you'll find performance sucks... If you have enough, then it can work fine... -- select 'cbbrowne' || '@' || 'acm.org'; http://cbbrowne.com/info/linuxxian.html "At Microsoft, it doesn't matter which file you're compiling, only which flags you #define." -- Colin Plumb