PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 17th, 2012, 08:53 PM
rongee rongee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 1 rongee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 20 sec
Reputation Power: 0
Pg_hba best practices?

Hi,

I am in the process of testing a new application using a new development platform (to me, anyway). For this test, I'm creating a runtime version of the application which includes our program logic and an embedded version of Postgres. Along with Postgres comes the pg_hba file, which, when run on an older PC running Windows XP, generates this error in the postgres log.....

LOG: invalid IP address "::1": Unknown host
CONTEXT: line 82 of configuration file "C:/WA4Beta/database/pg_hba.conf"
FATAL: could not load pg_hba.conf

The end of the pg_hba file looks like this....

# TYPE DATABASE USER CIDR-ADDRESS METHOD

# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust

It's that last line for IPv6 that is causing the problem, and if I comment out that line, everything is ok. But, I'm unclear as to whether that line should be left out, or needs to be there, and the fix is actually somewhere else. Other testers running newer versions of Windows do not show this error.

Any guidance would be appreciated.

Thanks and have a good day.

Ron

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > Pg_hba best practices?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap