Re: autovacuum truncate exclusive lock round two

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jan Wieck <JanWieck@Yahoo.com>
Cc: Kevin Grittner <kgrittn@mail.com>, Alvaro Herrera <alvherre@2ndquadrant.com>, Amit Kapila <amit.kapila@huawei.com>, Stephen Frost <sfrost@snowman.net>, PostgreSQL Development <pgsql-hackers@postgresql.org>
Date: 2012-11-29T14:46:47Z
Lists: pgsql-hackers
Jan Wieck <JanWieck@Yahoo.com> writes:
> On 11/28/2012 3:33 PM, Kevin Grittner wrote:
>> Resetting starttime this way seems especially odd.

> instr_time is LARGE_INTEGER on Win32 but struct timeval on Unix. Is
>      starttime = currenttime;
> portable if those are structs?

Sure.  We rely on struct assignment in lots of places.

			regards, tom lane