![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I am trying to create a database on FreeBSD 5.2-RELEASE, This is inside a jail. I had it working in 5.1 and now am having a problem. The error is as follows cp: /usr/local/pgsql/data/base/1/16386: Invalid argument [...] |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
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. |
|
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. |
#5
| |||
| |||
|
|
April Carvalho <acarvalh (AT) brave (DOT) 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 (AT) postgresql (DOT) org |
#6
| |||
| |||
|
|
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). |
#7
| |||
| |||
|
|
April Carvalho <acarvalh (AT) brave (DOT) cs.uml.edu> writes: 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). Hmm. I would call that a bug in the Debian distribution. All those files are kept in $PGDATA in a stock Postgres installation. The Debian version patches things to keep pg_hba.conf in /etc, but evidently has overlooked the possibility of @-included files. Oliver? |
#8
| |||
| |||
|
|
Hmm. I would call that a bug in the Debian distribution. All those files are kept in $PGDATA in a stock Postgres installation. The Debian version patches things to keep pg_hba.conf in /etc, but evidently has overlooked the possibility of @-included files. Oliver? In accordance with Debian policy, pg_hba.conf and the other configuration files are in /etc/postgresql; there are symlinks to $PGDATA. I do not change where the program looks for them (in other words, it still expects to find them in $PGDATA), so this does not seem a likely explanation. Are permissions OK? Is PGDATA set to /var/lib/postgres/data ? Or does the user's description above mean that the included files were in /etc/postgresql (where the program would not look for them) and have now been moved to $PGDATA? Since the PostgreSQL version is 7.3.4, the question remains whether the file inclusion mechanism is even supported. Can someone answer that before I go looking for bugs in the Debian packaging? |
#9
| |||
| |||
|
|
On Fri, 2004-01-23 at 17:02, Tom Lane wrote: April Carvalho <acarvalh (AT) brave (DOT) cs.uml.edu> writes: 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). Hmm. I would call that a bug in the Debian distribution. All those files are kept in $PGDATA in a stock Postgres installation. The Debian version patches things to keep pg_hba.conf in /etc, but evidently has overlooked the possibility of @-included files. Oliver? In accordance with Debian policy, pg_hba.conf and the other configuration files are in /etc/postgresql; there are symlinks to $PGDATA. I do not change where the program looks for them (in other words, it still expects to find them in $PGDATA), so this does not seem a likely explanation. Are permissions OK? Is PGDATA set to /var/lib/postgres/data ? Or does the user's description above mean that the included files were in /etc/postgresql (where the program would not look for them) and have now been moved to $PGDATA? Since the PostgreSQL version is 7.3.4, the question remains whether the file inclusion mechanism is even supported. Can someone answer that before I go looking for bugs in the Debian packaging? -- Oliver Elphick Oliver.Elphick (AT) lfix (DOT) co.uk Isle of Wight, UK http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "Look not every man on his own interests, but every man also on the things of others. Let this mind be in you, which was also in Christ Jesus" Philippians 2:4,5 |
#10
| |||
| |||
|
|
Btw, thanks for all the help. :-) I think that permissions are ok, since it was working fine when the files were moved; it would still be broken if the perms were not right. |
|
However $PGDATA was not set, assuming that the debconf (the debian package configuration program) had already set it properly. |
![]() |
| Thread Tools | |
| Display Modes | |
| |