pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: H.J. Sanders <hjs@rmax.nl>
To: pgsql-admin@postgresql.org
Subject: FW: 2 instances
Date: Tue, 4 Jul 2006 13:21:53 +0200
Message-ID: <GMEAJIDMNDKCIHMMHDFLGEKODPAA.hjs@rmax.nl> (raw)




  Hello.

  I would like to run 2 instances of postgresql with 2 different
data-directories: dir-a en dir-b.

  Looking trough the archives I came to the next setup:

  I created this 2 different directories and 2 users each with a different
PGDATA(dir-a and dir-b) in their .profile
  Using this 2 users i did twice initdb and createdb xyz with the first
user.

  in postgresql.conf of the second directory I changed  the port to 5433 and
also entered this port in /etc/services and started the second
  postmaster, ps -f shows it is running.

  If I now want to create the same database xyz in the second directory
using the second user,
  the database is already there!

  What am I missing?

  Many thanks

  Henk Sander

view thread (3+ messages)  latest in thread

Message-ID: <GMEAJIDMNDKCIHMMHDFLGEKODPAA.hjs@rmax.nl>
Permalink:  ../GMEAJIDMNDKCIHMMHDFLGEKODPAA.hjs@rmax.nl/
Also on:    postgresql.org/message-id/GMEAJIDMNDKCIHMMHDFLGEKODPAA.hjs@rmax.nl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: hjs@rmax.nl
  Subject: Re: FW: 2 instances
  In-Reply-To: <GMEAJIDMNDKCIHMMHDFLGEKODPAA.hjs@rmax.nl>
  References: <GMEAJIDMNDKCIHMMHDFLGEKODPAA.hjs@rmax.nl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox