PostgreSQL 8.0.3 and Ipv6

Started by Solangeover 21 years ago3 messagespatches
Jump to latest
#1Solange
voss@arnet.com.br

Hi, I am with problems to function postgreSQL 8.0.3 in
windows XP with the Ipv6 protocol. I try to have access the
bank in the following way:

psql -h ::1 -d db_teste -u postgres

but it gives an error: could not translate ::1: Unknown host.
already I configured the archive pg_hba.conf so that it has
accepted address::1 of ipv6. My machine is effecting ping6 in
::1 and my apache server also is functioning in ipv6. I made
everything what it said in the manual.

My question is the following one: PostgreSQL does not function in windows XP
with the Ipv6 protocol, or has that to configure plus some
thing? Or It only functions in linux?
Necessary of some patch so that it functions in windows Xp?

#2Andrew Dunstan
andrew@dunslane.net
In reply to: Solange (#1)
Re: [PATCHES] PostgreSQL 8.0.3 and Ipv6

[moving lists]

First, this question should not be on the -patches list. Please read the
mailing list descriptions carefully before posting and use the right one
- in this case probably the -hackers-win32 list.

IPv6 is a build time setting, and it appears that the current build
environment used for Windows (or at least mine) does not support IPv6.
It looks for struct sockaddr_in6 and fails to find it, apparently.

In fact, I am surprised that your postmaster doesn't complain if you put
an IPv6 address in pg_hba.conf.

cheers

andrew

Solange wrote:

Show quoted text

Hi, I am with problems to function postgreSQL 8.0.3 in
windows XP with the Ipv6 protocol. I try to have access the
bank in the following way:

psql -h ::1 -d db_teste -u postgres

but it gives an error: could not translate ::1: Unknown host.
already I configured the archive pg_hba.conf so that it has
accepted address::1 of ipv6. My machine is effecting ping6 in
::1 and my apache server also is functioning in ipv6. I made
everything what it said in the manual.

My question is the following one: PostgreSQL does not function in
windows XP
with the Ipv6 protocol, or has that to configure plus some
thing? Or It only functions in linux?
Necessary of some patch so that it functions in windows Xp?

#3Andrew Dunstan
andrew@dunslane.net
In reply to: Andrew Dunstan (#2)
Re: [PATCHES] PostgreSQL 8.0.3 and Ipv6

Researching this some more, I see:

/mingw/include/ws2tcpip.h:struct sockaddr_in6 {

do we need to include this somewhere?

cheers

andrew

Andrew Dunstan said:

Show quoted text

[moving lists]

First, this question should not be on the -patches list. Please read
the mailing list descriptions carefully before posting and use the
right one - in this case probably the -hackers-win32 list.

IPv6 is a build time setting, and it appears that the current build
environment used for Windows (or at least mine) does not support IPv6.
It looks for struct sockaddr_in6 and fails to find it, apparently.

In fact, I am surprised that your postmaster doesn't complain if you
put an IPv6 address in pg_hba.conf.

cheers

andrew

Solange wrote:

Hi, I am with problems to function postgreSQL 8.0.3 in
windows XP with the Ipv6 protocol. I try to have access the
bank in the following way:

psql -h ::1 -d db_teste -u postgres

but it gives an error: could not translate ::1: Unknown host.
already I configured the archive pg_hba.conf so that it has
accepted address::1 of ipv6. My machine is effecting ping6 in
::1 and my apache server also is functioning in ipv6. I made
everything what it said in the manual.

My question is the following one: PostgreSQL does not function in
windows XP
with the Ipv6 protocol, or has that to configure plus some
thing? Or It only functions in linux?
Necessary of some patch so that it functions in windows Xp?

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