Re: [HACKERS] PostgreSQL libraries - PThread Support, but - Mailing list pgsql-patches

From Kurt Roeckx
Subject Re: [HACKERS] PostgreSQL libraries - PThread Support, but
Date
Msg-id 20030614184443.GA21752@ping.be
Whole thread Raw
In response to Re: [HACKERS] PostgreSQL libraries - PThread Support, but  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [HACKERS] PostgreSQL libraries - PThread Support, but  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
On Sat, Jun 14, 2003 at 02:20:44PM -0400, Bruce Momjian wrote:
>
> This patch handles two more gethostbyname calls.
>
[...]
> diff -c -c -r1.24 fe-secure.c
> *** src/interfaces/libpq/fe-secure.c    14 Jun 2003 17:49:54 -0000    1.24
> --- src/interfaces/libpq/fe-secure.c    14 Jun 2003 18:08:54 -0000
> ***************
> *** 453,460 ****
>       if (addr.sa_family == AF_UNIX)
>           return 0;
>
>       /* what do we know about the peer's common name? */
> !     if ((h = gethostbyname(conn->peer_cn)) == NULL)
>       {
>           printfPQExpBuffer(&conn->errorMessage,
>           libpq_gettext("could not get information about host (%s): %s\n"),

That code is inside #ifdef NOT_USED, which is why I didn't change
it in my ipv6 patch.

Should I convert that function to use getaddrinfo too?

Others I didn't change where pg_krb4_sendauth() and
pg_krb5_sendauth(), because I don't have a clue about kerberos.



Kurt


pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] PostgreSQL libraries - PThread Support, but
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] PostgreSQL libraries - PThread Support, but