Skip site navigation (1) Skip section navigation (2)

Re: Problem with pg_hba.conf file in Postgres 7.3

From: April Carvalho <acarvalh(at)brave(dot)cs(dot)uml(dot)edu>
To: pgsql-novice(at)postgresql(dot)org
Cc: Dan MacNeil <omacneil(at)brave(dot)cs(dot)uml(dot)edu>
Subject: Re: Problem with pg_hba.conf file in Postgres 7.3
Date: 2004-01-21 18:27:01
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
I've been trying to fix a problem with my pg_hba.conf file.
For some reason, when using an external file when declaring
a list of users that can see a database, postgress is giving
me a syntax error.

This line:

host       db1     user1,user2,user3   md5

works well, but this does not:

host       db1     @user_list        md5

The postgres docs say this is the right syntax, but the error I get is:

Jan 21 11:30:01 csl-db postgres[21377]: [3] LOG:  parse_hba: invalid
syntax in pg_hba.conf file at line 64, token "(end of line)"

Changing it back to a comma separated list removes the error, and
everything works fine.

I think the problem may be the file itself, but there's nothing in the
postgres docs that say how this file should be formatted.  The old 7.2
user_list file looks like this:


Is this still the right syntax?  It would seem not, since the + now
referrs to groups.  However, this format did not work:


neither did a comma separated list on one line.  The file user_list
is in the same directory as my pg_hba.conf.

A search on the novice site came up empty (no hits).

Any help would be grately appreciated.  :-)

April Carvalho
Community Software Engineer
Community Software Lab

In response to


pgsql-novice by date

Next:From: George WeaverDate: 2004-01-21 20:09:09
Subject: Setting date and time
Previous:From: Oliver FrommeDate: 2004-01-20 09:45:52
Subject: Re: CREATEDB failure

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group