pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Goldberg <josh@4dmatrix.com>
To: Anuradha Ratnaweera <anuradha@gnu.org>
To: pgsql-admin@postgresql.org
Subject: Re: Multiple backends on a single physical database
Date: Fri, 11 Oct 2002 11:13:49 -0700
Message-ID: <001801c27151$f275eee0$6e02a8c0@4dmatrix.com> (raw)
References: <20021010060923.GA6975@lklug.pdn.ac.lk>

I have just done this.  There are three things I have found necessary:
1.  Only one backend can use the postmaster.pid file.  You must edit the
sourcecode for the other backends before you compile it.
2.  If you have backends A,B,C and A makes a modification to the data, B and
C need to be restarted before they can see the changes.
3.  Startup scripts for backends B and C that do not use the postmaster.pid
file need to be changed, specifically the method of stopping them.  I do a
`ps` and awk out the pid to kill it.  This is necessary to prevent removing
the lockfile from backend A.

I plan to use a high speed network storage device to accomplish this setup
effectively.

----- Original Message -----
From: "Anuradha Ratnaweera" <anuradha@gnu.org>
To: <pgsql-admin@postgresql.org>
Sent: Wednesday, October 09, 2002 11:09 PM
Subject: [ADMIN] Multiple backends on a single physical database


>
> I am wondering if it is sane to mount PGDATA over NFS on many
> machines and run posmaster backends on them, so that all the
> postmasters are using the same database.
>
> Obviously performance is going to suffer because network traffic
> is going to be high, but later we may use a distributed filesystem
> with replications instead of NFS.
>
> Thanks in advance.
>
> Anuradha
>
> --
>
> Debian GNU/Linux (kernel 2.4.18-xfs-1.1)
>
> There is more simplicity in the man who eats caviar on impulse than in the
> man who eats Grape-Nuts on principle.
> -- G.K. Chesterton
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>




view thread (13+ messages)  latest in thread

Message-ID: <001801c27151$f275eee0$6e02a8c0@4dmatrix.com>
Permalink:  ../001801c27151$f275eee0$6e02a8c0@4dmatrix.com/
Also on:    postgresql.org/message-id/001801c27151$f275eee0$6e02a8c0@4dmatrix.com

 · 

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: josh@4dmatrix.com, anuradha@gnu.org
  Subject: Re: Multiple backends on a single physical database
  In-Reply-To: <001801c27151$f275eee0$6e02a8c0@4dmatrix.com>
  References: <20021010060923.GA6975@lklug.pdn.ac.lk> <001801c27151$f275eee0$6e02a8c0@4dmatrix.com>

* 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