pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Raymond O'Donnell <rod@iol.ie>
To: Marc Fromm <Marc.Fromm@wwu.edu>
Cc: postgresql@finner.de <postgresql@finner.de>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: first time odbc
Date: Wed, 30 Mar 2011 16:47:37 +0100
Message-ID: <4D935099.9090301@iol.ie> (raw)
In-Reply-To: <93361C67E4EE844A80935863A4FF4B6C04E612E0@Exch2010MB-2.univ.dir.wwu.edu>
References: <29054973.1301422360902.JavaMail.root@elwamui-little.atl.sa.earthlink.net>
	<93361C67E4EE844A80935863A4FF4B6C04E60D02@Exch2010MB-2.univ.dir.wwu.edu>
	<20110330061806.13f0a67f@isengard.finner.de>
	<93361C67E4EE844A80935863A4FF4B6C04E612E0@Exch2010MB-2.univ.dir.wwu.edu>

On 30/03/2011 15:54, Marc Fromm wrote:
> I only want the users to read data, thus I removed superuser and
> applied grant select.

Good stuff.

> If the listen_address is not a client filter, would it still be
> better to only have it listen to localhost and the few ip addresses
> that will need to odbc to the postgres database? Is it just not
> possible to assign listen_address = 'localhost, 1.ip.address,
> 2.ip.address'?

You're still misunderstanding listen_addresses - it has *nothing* to do 
with client addresses.

Example: I have a server with two network interfaces, a.b.c.x and 
a.b.c.y. If I want PG to listen on both interfaces, I can set 
listen_addresses = '*' (or list the two addresses explicitly). If I want 
it to listen *only* on a.b.c.x, then I set listen_addresses='a.b.c.x'.

> One other thing still, if in the pg_hba.conf file I do not include
> any ip addresses I cannot connect to the database. If I enter just
> one ip address, any computer can connect to the database, even though
> some machines have static ip addresses and others have dhcp address
> from a completely different subnet. Do you know why this is? I
> figured the pg_hba.conf file controlled access by ip address, based
> on other googled articles.

Can you show us your pg_hba.conf?

Ray.

-- 
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie



view thread (14+ messages)  latest in thread

Message-ID: <4D935099.9090301@iol.ie>
Permalink:  ../4D935099.9090301@iol.ie/
Also on:    postgresql.org/message-id/4D935099.9090301@iol.ie

 · 

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-odbc@postgresql.org
  Cc: rod@iol.ie, Marc.Fromm@wwu.edu, postgresql@finner.de
  Subject: Re: first time odbc
  In-Reply-To: <4D935099.9090301@iol.ie>
  References: <29054973.1301422360902.JavaMail.root@elwamui-little.atl.sa.earthlink.net> <93361C67E4EE844A80935863A4FF4B6C04E60D02@Exch2010MB-2.univ.dir.wwu.edu> <20110330061806.13f0a67f@isengard.finner.de> <93361C67E4EE844A80935863A4FF4B6C04E612E0@Exch2010MB-2.univ.dir.wwu.edu> <4D935099.9090301@iol.ie>

* 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