pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Browne <cbbrowne@acm.org>
To: pgsql-ports@postgresql.org
Subject: AIX 5.3 and PostgreSQL...
Date: Mon, 11 Jul 2005 19:57:11 -0400
Message-ID: <m3vf3gvqug.fsf_-_@mobile.int.cbbrowne.com> (raw)
References: <none>

Today, we had a bit of a breakthru vis-a-vis AIX 5.3; after installing
GCC 4.0.1, this allowed PostgreSQL 7.4.8 to compile and install
cleanly.  This included the handling of pthreads, needful for Slony-I
to function.

There is still a problem, specifically with the handling of Unix
Domain Sockets.  The previously noticed problem with socket address
structure sizing is indeed a problem.  Here's a little program that
demonstrates it...

--------------------------------------------------------------
#include <stdio.h>
#include <sys/un.h>
#include <sys/socket.h>
int main (int argc, char *argv[]) {
        struct sockaddr_storage a;
        struct sockaddr_un b;
        printf("Size of sockadr_storage: %d\n", sizeof(a));
        printf ("Size of sockaddr_un:%d\n", sizeof(b));

        if (sizeof(a) >= sizeof(b)) 
                printf ("Conformant to RFC 3493\n");
        else
                printf ("Non-conformant to RFC 3493\n");
}
--------------------------------------------------------------

Without UDS, regression tests won't run.  (Feel free to tell me that
I'm wrong, and that there's an option that will cause it to use a
localhost interface...)

However, I was able to, with the use of GCC 4.0.1, get PG 7.4.8 to
work to the point where I was able to run one the base Slony-I "duct
tape" tests, and that worked fine.

In a way, it turns out to merely be an inconvenience as we're running
nearly all services across TCP/IP anyways, so that the lack of UDS
isn't crippling.

But it's obviously a non-conformance to the RFC, so we're starting to
push it upstream...
-- 
let name="cbbrowne" and tld="acm.org" in String.concat "@" [name;tld];;
http://cbbrowne.com/info/rdbms.html
Rules of  the Evil  Overlord #153.  "My Legions of  Terror will  be an
equal-opportunity employer. Conversely, when  it is prophesied that no
man  can defeat  me, I  will  keep in  mind the  increasing number  of
non-traditional gender roles." <http://www.eviloverlord.com/;



Message-ID: <m3vf3gvqug.fsf_-_@mobile.int.cbbrowne.com>
Permalink:  ../m3vf3gvqug.fsf_-_@mobile.int.cbbrowne.com/
Also on:    postgresql.org/message-id/m3vf3gvqug.fsf_-_@mobile.int.cbbrowne.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-ports@postgresql.org
  Cc: cbbrowne@acm.org
  Subject: Re: AIX 5.3 and PostgreSQL...
  In-Reply-To: <m3vf3gvqug.fsf_-_@mobile.int.cbbrowne.com>
  References: <none> <m3vf3gvqug.fsf_-_@mobile.int.cbbrowne.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox