From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | David Rowley <dgrowleyml(at)gmail(dot)com> |
Cc: | Craig Ringer <craig(at)2ndquadrant(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Fabris Giovanni Consulente <cons(dot)FabrisGiovanni(at)sia(dot)eu> |
Subject: | Re: [Windows,PATCH] Use faster, higher precision timer API |
Date: | 2014-10-23 19:21:56 |
Message-ID: | CA+TgmoajJvruv-yytkihJuhq0mChn_zK3-2yGMQd9NtB8ZcQrw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Oct 23, 2014 at 5:41 AM, David Rowley <dgrowleyml(at)gmail(dot)com> wrote:
> On Thu, Oct 23, 2014 at 1:27 AM, Craig Ringer <craig(at)2ndquadrant(dot)com> wrote:
>> Here's an updated patch addressing David's points.
>> I haven't had a chance to test it yet, on win2k8 or win2k12 due to
>> pgconf.eu .
>>
> Hi Craig, thanks for the fast turnaround.
>
> I've just had a look over the patch again:
>
> + DWORD errcode = GetLastError();
> + Assert(errcode == ERROR_PROC_NOT_FOUND);
>
> I'm not a big fan of this. It seems quite strange to be using Assert in this
> way.
Agreed - I think if you want an error check here it should use elog()
or ereport(), not Assert().
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2014-10-23 19:31:44 | Re: ltree::text not immutable? |
Previous Message | Joe Van Dyk | 2014-10-23 18:59:12 | ltree::text not immutable? |