Re: droped out precise time calculations in src/interfaces/libpq/fe-connect.c

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: pgman(at)candle(dot)pha(dot)pa(dot)us
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Joe Conway <mail(at)joeconway(dot)com>, Denis A Ustimenko <denis(at)oldham(dot)ru>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: droped out precise time calculations in src/interfaces/libpq/fe-connect.c
Date: 2002-10-14 17:34:26
Message-ID: 200210141734.g9EHYQM28636@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Oops, overoptimized a little. ptmp_timeout is needed in case no time is
passed; ptmp_timeout restored.

---------------------------------------------------------------------------

pgman wrote:
> Tom Lane wrote:
> > Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > > That whole remains structure should be a time_t variable, and then we
> > > _know_ we can't assume it is signed. The use of timeval should
> > > happen only in pqWaitTimed because it has to use select().
> >
> > I think it's fine to use struct timeval as the parameter type for
> > pqWaitTimed. This particular caller of pqWaitTimed has no need for
> > sub-second wait precision, but that doesn't mean we might not want it
> > for other purposes later.
>
> That was a question: whether pqWaitTimed() was something exported by
> libpq and therefore something that has an API that shouldn't change. I
> see it in libpq-int.h, which I think means it isn't exported, but yes,
> there could be later cases where we need subsecond stuff.
>
> I have applied the following patch to get us a little closer to sanity.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-10-14 18:10:41 Re: droped out precise time calculations in src/interfaces/libpq/fe-connect.c
Previous Message Bruce Momjian 2002-10-14 17:14:22 Re: droped out precise time calculations in src/interfaces/libpq/fe-connect.c