Re: Trying to build 7.0.3 on SCO 5.0.4
От | Larry Rosenman |
---|---|
Тема | Re: Trying to build 7.0.3 on SCO 5.0.4 |
Дата | |
Msg-id | 20001121143906.A11204@lerami.lerctr.org обсуждение исходный текст |
Ответ на | Re: Trying to build 7.0.3 on SCO 5.0.4 (Dave Smith <dave@candata.com>) |
Ответы |
Re: Trying to build 7.0.3 on SCO 5.0.4
|
Список | pgsql-general |
* Dave Smith <dave@candata.com> [001121 14:34]: > Yup. that's it. > > createdb --host=localhost company > works fine. Could you elaborate on what the accept issue is? SCO has a bug in accept() of Unix Domain Sockets. It doesn't set SA_FAMILY to AF_UNIX. Here's a patch for 7.0.3: $ diff -c pqcomm.c.old pqcomm.c *** pqcomm.c.old Thu May 25 20:26:19 2000 --- pqcomm.c Sun Nov 12 12:03:25 2000 *************** *** 354,359 **** --- 354,361 ---- perror("postmaster: StreamConnection: accept"); return STATUS_ERROR; } + if (port->raddr.sa.sa_family == 0) + port->raddr.sa.sa_family = AF_UNIX; /* fill in the server (local) address */ addrlen = sizeof(port->laddr); $ We've fixed this in 7.1 for UnixWare, now we need to fix it for OSR5 as well. Peter E: Can we look into this? > > Larry Rosenman wrote: > > > What happens if you connect using TCP/IP? > > I think the OSR5 libs have the same issue that UW7 has in the accept > > call. > > > > I.E. psql -h localhost > > > > LER > > > > * Dave Smith <dave@candata.com> [001121 13:37]: > > > >> No differnt > >> > >> Robert D. Nelson wrote: > >> > >> > >>>> createdb company > >>>> psql: No pg_hba.conf entry for host localhost, user postgre, database > >>>> template1 > >>>> createdb: database creation failed > >>> > >>> > >>> What happens if you try a user "postgres" instead of "postgre"? :) > >>> > >>> > >>> Rob Nelson > >>> rdnelson@co.centre.pa.us > >> -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
В списке pgsql-general по дате отправления: