Re: CVS compile failure - Mailing list pgsql-hackers

From Tom Lane
Subject Re: CVS compile failure
Date
Msg-id 8653.1090210482@sss.pgh.pa.us
Whole thread Raw
In response to CVS compile failure  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: CVS compile failure
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I am seeing a compile failure in current CVS from strptime():
>   ./backend/access/transam/xlog.c:    if (strptime(tok2, "%Y-%m-%d %H:%M:%S", &tm) == NULL)
> BSD/OS does not have that function.

Hmph.  I was wondering if that was really portable or not :-(.
Any ideas about a quick-and-dirty replacement?

Maybe we could call abstimein or something like that.  We just want to
convert a human-readable string value to a time_t, and I can't say that
I thought the strptime behavior was all that friendly anyway...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump bug fixing
Next
From: "Marc G. Fournier"
Date:
Subject: Re: CVS compile failure