Re: [GENERAL] Stats Collector Won't Start

2006-10-19 Thread Tom Lane
Chris Browne <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (Tom Lane) writes: >> What I'm tempted to do is add this to pg_getaddrinfo_all (in >> src/backend/libpq/ip.c): >> ... > That seems to work fine, too. And that seems somewhat more > portable/elegant/something. OK, patch applied as far b

Re: [GENERAL] Stats Collector Won't Start

2006-10-19 Thread Chris Browne
[EMAIL PROTECTED] (Tom Lane) writes: > Chris Browne <[EMAIL PROTECTED]> writes: >> Is there a more elegant way of setting the requested port to 0 than my >> 2-liner? > > What I'm tempted to do is add this to pg_getaddrinfo_all (in > src/backend/libpq/ip.c): > > { > /* not all versions of ge

Re: [GENERAL] Stats Collector Won't Start

2006-10-19 Thread Tom Lane
Chris Browne <[EMAIL PROTECTED]> writes: > Is there a more elegant way of setting the requested port to 0 than my > 2-liner? What I'm tempted to do is add this to pg_getaddrinfo_all (in src/backend/libpq/ip.c): { /* not all versions of getaddrinfo() zero *result on failure */ *r

Re: [GENERAL] Stats Collector Won't Start

2006-10-19 Thread Chris Browne
[EMAIL PROTECTED] (Tom Lane) writes: > Chris Browne <[EMAIL PROTECTED]> writes: >> [EMAIL PROTECTED] (Tom Lane) writes: >>> Chris Browne <[EMAIL PROTECTED]> writes: (gdb) print addr->ai_addr->sa_data $18 = "\000\001\177\000\000\001\000\000\000\000\000\000\000" >>> >>> Hmm, that looks a b

Re: [GENERAL] Stats Collector Won't Start

2006-10-19 Thread Chris Browne
[EMAIL PROTECTED] (Tom Lane) writes: > Brad Nicholson <[EMAIL PROTECTED]> writes: >> On Wed, 2006-10-18 at 15:59 -0400, Tom Lane wrote: >>> Also, do regular connections to this postmaster work across TCP/IP? >>> If getaddrinfo() is broken I'd expect there to be problems binding >>> to the postmast

Re: [GENERAL] Stats Collector Won't Start

2006-10-19 Thread Tom Lane
Chris Browne <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (Tom Lane) writes: >> Chris Browne <[EMAIL PROTECTED]> writes: >>> (gdb) print addr->ai_addr->sa_data >>> $18 = "\000\001\177\000\000\001\000\000\000\000\000\000\000" >> >> Hmm, that looks a bit odd --- what's the full declaration of str

Re: [GENERAL] Stats Collector Won't Start

2006-10-19 Thread Chris Browne
[EMAIL PROTECTED] (Tom Lane) writes: > Chris Browne <[EMAIL PROTECTED]> writes: >> (gdb) print addr->ai_addr->sa_data >> $18 = "\000\001\177\000\000\001\000\000\000\000\000\000\000" > > Hmm, that looks a bit odd --- what's the full declaration of structs > sockaddr and sockaddr_in on that machine?

Re: [GENERAL] Stats Collector Won't Start

2006-10-18 Thread Tom Lane
Chris Browne <[EMAIL PROTECTED]> writes: > (gdb) print addr->ai_addr->sa_data > $18 = "\000\001\177\000\000\001\000\000\000\000\000\000\000" Hmm, that looks a bit odd --- what's the full declaration of structs sockaddr and sockaddr_in on that machine? regards, tom lane --

Re: [GENERAL] Stats Collector Won't Start

2006-10-18 Thread Tom Lane
Brad Nicholson <[EMAIL PROTECTED]> writes: > On Wed, 2006-10-18 at 15:59 -0400, Tom Lane wrote: >> Also, do regular connections to this postmaster work across TCP/IP? >> If getaddrinfo() is broken I'd expect there to be problems binding >> to the postmaster's listen socket too ... > Yes, TCP/IP co

Re: [GENERAL] Stats Collector Won't Start

2006-10-18 Thread Chris Browne
[EMAIL PROTECTED] (Tom Lane) writes: > Brad Nicholson <[EMAIL PROTECTED]> writes: >> On Wed, 2006-10-18 at 14:31 -0400, Tom Lane wrote: >>> Would you try strace'ing postmaster start to see what gets passed to the >>> socket() and bind() calls just before this message comes out? > >> Here is the rel

Re: [GENERAL] Stats Collector Won't Start

2006-10-18 Thread Brad Nicholson
On Wed, 2006-10-18 at 15:59 -0400, Tom Lane wrote: > Brad Nicholson <[EMAIL PROTECTED]> writes: > > On Wed, 2006-10-18 at 14:31 -0400, Tom Lane wrote: > >> Would you try strace'ing postmaster start to see what gets passed to the > >> socket() and bind() calls just before this message comes out? >

Re: [GENERAL] Stats Collector Won't Start

2006-10-18 Thread Tom Lane
Brad Nicholson <[EMAIL PROTECTED]> writes: > On Wed, 2006-10-18 at 14:31 -0400, Tom Lane wrote: >> Would you try strace'ing postmaster start to see what gets passed to the >> socket() and bind() calls just before this message comes out? > Here is the relative output from truss. > socket(2, 2, 0)

Re: [GENERAL] Stats Collector Won't Start

2006-10-18 Thread Brad Nicholson
On Wed, 2006-10-18 at 14:31 -0400, Tom Lane wrote: > Brad Nicholson <[EMAIL PROTECTED]> writes: > > On Wed, 2006-10-18 at 13:00 -0400, Tom Lane wrote: > >> That's bizarre. What error conditions does your man page for bind(2) > >> document as yielding EACCES? The only one mentioned on my systems i

Re: [GENERAL] Stats Collector Won't Start

2006-10-18 Thread Tom Lane
Brad Nicholson <[EMAIL PROTECTED]> writes: > On Wed, 2006-10-18 at 13:00 -0400, Tom Lane wrote: >> That's bizarre. What error conditions does your man page for bind(2) >> document as yielding EACCES? The only one mentioned on my systems is >> "protected address", but we aren't requesting a reserv

Re: [GENERAL] Stats Collector Won't Start

2006-10-18 Thread Ben
I just had this problem last night my local firewall was blocking connections on the loopback interface. On Wed, 18 Oct 2006, Brad Nicholson wrote: Can someone please provide a bit of information where the following error is coming from? This is PG 8.1.3 on AIX 5.3 LOG: could not bind s

Re: [GENERAL] Stats Collector Won't Start

2006-10-18 Thread Brad Nicholson
On Wed, 2006-10-18 at 13:00 -0400, Tom Lane wrote: > Brad Nicholson <[EMAIL PROTECTED]> writes: > > Can someone please provide a bit of information where the following > > error is coming from? This is PG 8.1.3 on AIX 5.3 > > > LOG: could not bind socket for statistics collector: Permission deni

Re: [GENERAL] Stats Collector Won't Start

2006-10-18 Thread Tom Lane
Brad Nicholson <[EMAIL PROTECTED]> writes: > Can someone please provide a bit of information where the following > error is coming from? This is PG 8.1.3 on AIX 5.3 > LOG: could not bind socket for statistics collector: Permission denied That's bizarre. What error conditions does your man page

[GENERAL] Stats Collector Won't Start

2006-10-18 Thread Brad Nicholson
Can someone please provide a bit of information where the following error is coming from? This is PG 8.1.3 on AIX 5.3 LOG: could not bind socket for statistics collector: Permission denied LOG: disabling statistics collector for lack of working socket What exactly does the PG user not have app