Re: Problem with pg_hba.conf file in Postgres 7.3
От | April Carvalho |
---|---|
Тема | Re: Problem with pg_hba.conf file in Postgres 7.3 |
Дата | |
Msg-id | Pine.LNX.4.44.0401231149380.2321-100000@brave.cs.uml.edu обсуждение исходный текст |
Ответ на | Re: Problem with pg_hba.conf file in Postgres 7.3 (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Problem with pg_hba.conf file in Postgres 7.3
|
Список | pgsql-novice |
Thanks for answering. It's (PostgreSQL) 7.3.4, from the Debian testing suite. The syntax is right, but my co worker found out what was wrong-- The files seem to be in the wrong place, and thus they couldn't be parsed. The docs say they should be in the same directory as pg_hba.conf, but they're now in /var/lib/postgres/data (our pg_hba.conf file is in /etc/postgresql). I'm curious why he got a different error message than I, which enabled him to find the problem quickly. Thanks again. April On Wed, 21 Jan 2004, Tom Lane wrote: > April Carvalho <acarvalh@brave.cs.uml.edu> writes: > > 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. > > It seems to work for me with 7.4.1 --- but the @-inclusion syntax > is fairly recent. I'm not sure if it is supported in 7.3.*. > What PG version are you using? > > > 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. > > It's just a free-format list of names. Either of these should work: > > user1 user2 user3 > > user1 > user2 > user3 > > I think you can have comments too. > > [ thinks... ] Are you remembering to SIGHUP the postmaster after > changing the file contents? It won't notice a change otherwise. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org >
В списке pgsql-novice по дате отправления: