• Tom Lane's avatar
    Fix portability and safety issues in pqTraceFormatTimestamp. · f1be740a
    Tom Lane authored
    Remove confusion between time_t and pg_time_t; neither
    gettimeofday() nor localtime() deal in the latter.
    libpq indeed has no business using <pgtime.h> at all.
    
    Use snprintf not sprintf, to ensure we can't overrun the
    supplied buffer.  (Unlikely, but let's be safe.)
    
    Per buildfarm.
    f1be740a
fe-trace.c 16.6 KB