Re: [HACKERS] PostgreSQL 7.4devel - LOG: PGSTAT: socket() failed: Invalid argument

2003-07-09 Thread qhwt
Hello, On Mon, Jul 07, 2003 at 12:55:06AM +0900, [EMAIL PROTECTED] wrote: When hints.ai_family is PF_UNSPEC, getaddrinfo() returns two entries, first one being IPv6 one, and the second one is IPv4 one, even if IPv6 support is not compiled in the kernel(this is true at least on my

Re: [HACKERS] PostgreSQL 7.4devel - LOG: PGSTAT: socket() failed: Invalid argument

2003-07-06 Thread qhwt
On Mon, Jul 07, 2003 at 12:38:57AM +0900, [EMAIL PROTECTED] wrote: Hi, On Wed, Jul 02, 2003 at 03:49:19PM +0900, Kenji Sugita wrote: It seems that a value of addr-ai_socktype returned by getaddrinfo in pg_stat.c is not SOCK_DGRAM. Please try the following untested patch: No, please

Re: [HACKERS] PostgreSQL 7.4devel - LOG: PGSTAT: socket() failed: Invalid argument

2003-07-06 Thread Kurt Roeckx
On Mon, Jul 07, 2003 at 12:38:57AM +0900, [EMAIL PROTECTED] wrote: On Wed, Jul 02, 2003 at 03:49:19PM +0900, Kenji Sugita wrote: It seems that a value of addr-ai_socktype returned by getaddrinfo in pg_stat.c is not SOCK_DGRAM. Please try the following untested patch: [...] + for (;

Re: [HACKERS] PostgreSQL 7.4devel - LOG: PGSTAT: socket() failed: Invalid argument

2003-07-06 Thread Kurt Roeckx
On Mon, Jul 07, 2003 at 12:55:06AM +0900, [EMAIL PROTECTED] wrote: When hints.ai_family is PF_UNSPEC, getaddrinfo() returns two entries, first one being IPv6 one, and the second one is IPv4 one, even if IPv6 support is not compiled in the kernel(this is true at least on my FreeBSD box). And

Re: [HACKERS] PostgreSQL 7.4devel - LOG: PGSTAT: socket() failed: Invalid argument

2003-07-06 Thread Kurt Roeckx
On Sun, Jul 06, 2003 at 06:30:04PM +0200, Kurt Roeckx wrote: Try the attached patch instead. Oops, that one was a little broken. I change it. Try the attached one instead. Kurt Index: ./src/backend/postmaster/pgstat.c === RCS

Re: [HACKERS] PostgreSQL 7.4devel - LOG: PGSTAT: socket() failed: Invalid argument

2003-07-03 Thread Kurt Roeckx
On Thu, Jul 03, 2003 at 10:44:31AM +0900, Kenji Sugita wrote: From: Kurt Roeckx [EMAIL PROTECTED] To: Kenji Sugita [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: Wed, 2 Jul 2003 19:20:11 +0200 ;;; What system are you running on, and does it have a getaddrinfo() ;;; or not? Red Hat

Re: [HACKERS] PostgreSQL 7.4devel - LOG: PGSTAT: socket() failed: Invalid argument

2003-07-02 Thread Kurt Roeckx
On Wed, Jul 02, 2003 at 03:49:19PM +0900, Kenji Sugita wrote: It seems that a value of addr-ai_socktype returned by getaddrinfo in pg_stat.c is not SOCK_DGRAM. What system are you running on, and does it have a getaddrinfo() or not? If I tell getaddrinfo() it should return a SOCK_DGRAM, it can

Re: [HACKERS] PostgreSQL 7.4devel - LOG: PGSTAT: socket() failed: Invalid argument

2003-07-02 Thread Kurt Roeckx
On Wed, Jul 02, 2003 at 03:49:19PM +0900, Kenji Sugita wrote: It seems that a value of addr-ai_socktype returned by getaddrinfo in pg_stat.c is not SOCK_DGRAM. What do you base this on? My guess is that it returns an ipv6 address while you do not have IPv6 support in the kernel. If that is

Re: [HACKERS] PostgreSQL 7.4devel - LOG: PGSTAT: socket() failed: Invalid argument

2003-07-02 Thread Kurt Roeckx
On Wed, Jul 02, 2003 at 08:35:00PM +0200, Kurt Roeckx wrote: On Wed, Jul 02, 2003 at 03:49:19PM +0900, Kenji Sugita wrote: It seems that a value of addr-ai_socktype returned by getaddrinfo in pg_stat.c is not SOCK_DGRAM. What do you base this on? My guess is that it returns an ipv6