pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Elphick <olly@lfix.co.uk>
To: Goulet, Dick <DGoulet@vicr.com>
Cc: Terry Letsche <terry@letsche.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Setup for a db class
Date: Tue, 14 Sep 2004 21:46:41 +0100
Message-ID: <1095194800.21855.101.camel@linda> (raw)
In-Reply-To: <4001DEAF7DF9BD498B58B45051FBEA650146C71A@25exch1.vicorpower.vicr.com>
References: <4001DEAF7DF9BD498B58B45051FBEA650146C71A@25exch1.vicorpower.vicr.com>

On Tue, 2004-09-14 at 20:39, Goulet, Dick wrote:
> Terry,
> 
> 	In pga_conf.hba you can setup to restrict access to the other databases as in:
> 
> # TYPE  DATABASE    USER        IP-ADDRESS        IP-MASK           METHOD
> # IPv6-style local connections:
> host    db1         usr1         ::1               ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff        trust
> host    db2         usr2         172.20.0.0        255.255.0.0       trust
> host    db3         usr3         172.17.0.0        255.255.0.0       trust

You can also put "sameuser" as the database, to restrict it to a user of
the same name as the database.

-- 
Oliver Elphick                                          olly@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
                 ========================================
     "But without faith it is impossible to please him; for 
      he that cometh to God must believe that he is, and 
      that he is a rewarder of them that diligently seek 
      him."        Hebrews 11:6 




view thread (3+ messages)

Message-ID: <1095194800.21855.101.camel@linda>
Permalink:  ../1095194800.21855.101.camel@linda/
Also on:    postgresql.org/message-id/1095194800.21855.101.camel@linda

 · 

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: olly@lfix.co.uk, DGoulet@vicr.com, terry@letsche.net
  Subject: Re: Setup for a db class
  In-Reply-To: <1095194800.21855.101.camel@linda>
  References: <4001DEAF7DF9BD498B58B45051FBEA650146C71A@25exch1.vicorpower.vicr.com> <1095194800.21855.101.camel@linda>

* 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