469,311 Members | 2,406 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,311 developers. It's quick & easy.

pg_hba.conf

Hello, sometimes I get a strange error from postgresql when I try to
connect using ssl to the server:

LOG: parse_hba: invalid syntax in pg_hba.conf file at line 46, token
"hostssl"
FATAL: Missing or erroneous pg_hba.conf file, see postmaster log for
details

The contents of the pg_hba.conf file are

hostssl dnet att 172.16.13.40 255.255.255.255 trust

thanks
Angel T. Todorov
PGP public key ID: 1024D/
<http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x35454B4C> 35454B4C
Nov 12 '05 #1
11 9162
Angel Todorov writes:
LOG: parse_hba: invalid syntax in pg_hba.conf file at line 46, token
"hostssl"


It looks as though your server was not compiled with SSL support.

--
Peter Eisentraut pe*****@gmx.net
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 12 '05 #2
On Tue, 30 Sep 2003, Angel Todorov wrote:
Hello, sometimes I get a strange error from postgresql when I try to
connect using ssl to the server:

LOG: parse_hba: invalid syntax in pg_hba.conf file at line 46, token
"hostssl"
FATAL: Missing or erroneous pg_hba.conf file, see postmaster log for
details

The contents of the pg_hba.conf file are

hostssl dnet att 172.16.13.40 255.255.255.255 trust


In 7.3 and less ssl connections fail if a host line matches before the hostssl
line. At least I think that's the situation, there is definitely something
there that will make a ssl connection get rejected even if there is an
appropiate entry in pg_hba.conf

This works more sensibly in 7.4 I believe.
--
Nigel J. Andrews
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 12 '05 #3
"Nigel J. Andrews" <na******@investsystems.co.uk> writes:
In 7.3 and less ssl connections fail if a host line matches before the hostssl
line. At least I think that's the situation, there is definitely something
there that will make a ssl connection get rejected even if there is an
appropiate entry in pg_hba.conf


Really? Can you show an example?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 12 '05 #4
On Tue, 30 Sep 2003, Tom Lane wrote:
"Nigel J. Andrews" <na******@investsystems.co.uk> writes:
In 7.3 and less ssl connections fail if a host line matches before the hostssl
line. At least I think that's the situation, there is definitely something
there that will make a ssl connection get rejected even if there is an
appropiate entry in pg_hba.conf


Really? Can you show an example?


Well, not at the moment. I'd have to remember the specifics as well. I think it
was something to do with the client being built with ssl but the server not. Or
it might have been both built with ssl and a host line appearing before hostssl
in pg_hba.conf.

Whatever, I believe this was addressed by someone, possibly with the
introduction of a GUC.

I'll have to see if I can scrape the time together to try things out again but
I'm very busy, what with people struggling to make something work on production
when it was working on dev only to eventually say what the problem actually is
so it could be solved in a couple of seconds.
--
Nigel J. Andrews
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 12 '05 #5

We're looking for a (preferrably free) Windows (or browser) based PG
admin tool to use in our office. I've only ever used the psql command
line interface, so I don't have any experience with the GUI tools out
there. Any help appreciated.

Cheers,
Rick


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 12 '05 #6
Rick Seeger wrote:
We're looking for a (preferrably free) Windows (or browser) based PG
admin tool to use in our office. I've only ever used the psql command
line interface, so I don't have any experience with the GUI tools out
there. Any help appreciated.

Cheers,
Rick


Rick,
This might help you:

http://techdocs.postgresql.org/guides/GUITools

--
Robby Russell, | Sr. Administrator / Lead Programmer
Command Prompt, Inc. | http://www.commandprompt.com
rr******@commandprompt.com | Telephone: (503) 222.2783
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 12 '05 #7
El Mié 01 Oct 2003 19:58, Rick Seeger escribió:
We're looking for a (preferrably free) Windows (or browser) based PG
admin tool to use in our office. I've only ever used the psql command
line interface, so I don't have any experience with the GUI tools out
there. Any help appreciated.


From Windows I would recommend phpPgAdmin, but you'll need a web server with
PHP, and if you don't have it, it might not be the best tool.
You can also try PgAdmin III.

--
20:26:01 up 40 days, 12:08, 2 users, load average: 0.65, 1.00, 0.97
-----------------------------------------------------------------
Martín Marqués | mm******@unl.edu.ar
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 12 '05 #8
I've found DBVisualizer to be an excellent tool. Its Java based, and
not specific to Postgres. There are free and payware options.

http://www.minq.se/

(I don't work for them.)

On Wednesday, October 1, 2003, at 06:58 PM, Rick Seeger wrote:

We're looking for a (preferrably free) Windows (or browser) based PG
admin tool to use in our office. I've only ever used the psql command
line interface, so I don't have any experience with the GUI tools out
there. Any help appreciated.

Cheers,
Rick


---------------------------(end of
broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

--------------------

Andrew Rawnsley
President
The Ravensfield Digital Resource Group, Ltd.
(740) 587-0114
www.ravensfield.com
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 12 '05 #9
I've try the trail version of PostgreSQL Manager by EMS
http://www.ems-hitec.com/pgmanager . But it is not free but not very
expensive (aboot 200$). It is a good tools.

I've try PgAdmin III on Windows 2000 . It's very good and free.
http://www.ems-hitec.com/pgmanager

You should get both and see which one has the full functionnality's you
need.

Thierry.

Robby Russell wrote:
Rick Seeger wrote:
We're looking for a (preferrably free) Windows (or browser) based PG
admin tool to use in our office. I've only ever used the psql command
line interface, so I don't have any experience with the GUI tools out
there. Any help appreciated.

Cheers,
Rick


Rick,
This might help you:

http://techdocs.postgresql.org/guides/GUITools

--
Robby Russell, | Sr. Administrator / Lead Programmer
Command Prompt, Inc. | http://www.commandprompt.com
rr******@commandprompt.com | Telephone: (503) 222.2783

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 12 '05 #10
El Jue 02 Oct 2003 04:24, Thierry Missimilly escribió:
I've try the trail version of PostgreSQL Manager by EMS
http://www.ems-hitec.com/pgmanager . But it is not free but not very
expensive (aboot 200$). It is a good tools.

I've try PgAdmin III on Windows 2000 . It's very good and free.
http://www.ems-hitec.com/pgmanager

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Wrong URL here:

http://www.pgadmin.org/pgadmin3/index.php
--
09:21:02 up 41 days, 1:03, 3 users, load average: 2.11, 1.00, 0.54
-----------------------------------------------------------------
Martín Marqués | mm******@unl.edu.ar
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 12 '05 #11

Thank you everyone for your excellent leads! We're evaluating them
presently...

--Rick
-----Original Message-----
From: pg*****************@postgresql.org
[mailto:pg*****************@postgresql.org]On Behalf Of Martin Marques
Sent: Thursday, October 02, 2003 8:23 AM
To: Thierry Missimilly; Robby Russell
Cc: postgres general
Subject: Re: [GENERAL] Can anyone recommend a good PostGres admin
tool?
El Jue 02 Oct 2003 04:24, Thierry Missimilly escribió:
I've try the trail version of PostgreSQL Manager by EMS
http://www.ems-hitec.com/pgmanager . But it is not free but not very
expensive (aboot 200$). It is a good tools.

I've try PgAdmin III on Windows 2000 . It's very good and free.
http://www.ems-hitec.com/pgmanager

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Wrong URL here:

http://www.pgadmin.org/pgadmin3/index.php
--
09:21:02 up 41 days, 1:03, 3 users, load average: 2.11, 1.00, 0.54
-----------------------------------------------------------------
Martín Marqués | mm******@unl.edu.ar
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------
---------------------------(end of
broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to
ma*******@postgresql.org

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 12 '05 #12

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by David Nedrow | last post: by
reply views Thread by Tom Allison | last post: by
5 posts views Thread by Raymond O'Donnell | last post: by
1 post views Thread by David Parker | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.