diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2021-03-31 17:00:30 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2021-03-31 17:00:30 -0400 |
commit | f1be740a991406d7885047beb971e1ff5dbe8b71 (patch) | |
tree | ad5014a0c27149149e033a8fd8c27e431bde569b /src/backend/executor/execParallel.c | |
parent | 8998e3cafa23632790787b8cc726998e84067259 (diff) | |
download | postgresql-f1be740a991406d7885047beb971e1ff5dbe8b71.tar.gz postgresql-f1be740a991406d7885047beb971e1ff5dbe8b71.zip |
Fix portability and safety issues in pqTraceFormatTimestamp.
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.
Diffstat (limited to 'src/backend/executor/execParallel.c')
0 files changed, 0 insertions, 0 deletions