X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0FC28D1B541 for ; Fri, 10 Oct 2003 06:33:52 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 44420-01 for ; Fri, 10 Oct 2003 03:33:04 -0300 (ADT) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id B2C6AD1B4E5 for ; Fri, 10 Oct 2003 03:33:02 -0300 (ADT) Received: from lfix.demon.co.uk ([80.177.205.209] helo=cerberus.lfix.co.uk) by anchor-post-34.mail.demon.net with esmtp (Exim 3.35 #1) id 1A7qpj-0005mQ-0Y; Fri, 10 Oct 2003 07:33:03 +0100 Received: from linda.lfix.co.uk ([192.168.1.1]) by cerberus.lfix.co.uk with esmtp (Exim 4.22) id 1A7qpW-0005WF-Tv; Fri, 10 Oct 2003 07:32:50 +0100 Subject: Re: limit the database size From: Oliver Elphick To: Laszlo Hornyak Cc: pgsql-admin@postgresql.org In-Reply-To: <3F864E09.6040500@tigrasoft.hu> References: <008401c38ebc$ffc1c270$da17040a@lothar> <3F85F395.1020408@oasis.net.au> <3F864E09.6040500@tigrasoft.hu> Content-Type: text/plain Organization: LFIX Limited Message-Id: <1065767570.2418.64.camel@linda.lfix.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 10 Oct 2003 07:32:50 +0100 Content-Transfer-Encoding: 7bit X-LFIX-MailScanner: Found to be clean X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/109 X-Sequence-Number: 10670 On Fri, 2003-10-10 at 07:13, Laszlo Hornyak wrote: > Hi! > > I believe you don`t need to recompile, just > export PGDATA=/home/me/pgdata > pg_initdb > pg_ctl start > and ready to go. If you do this, each separate instance needs a different port. That can be set in $PGDATA/postgresql.conf. When you connect to the server (with psql or another frontend) you specify the correct port for the server you want. psql -p 5433 -d mydatabase or export PGPORT=5433 psql -d mydatabase -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight, UK http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "He that covereth his sins shall not prosper; but whoso confesseth and forsaketh them shall have mercy." Proverbs 28:13