Re: [Windows,PATCH] Use faster, higher precision timer API

Поиск
Список
Период
Сортировка
Искать
От
Robert Haas
Тема
Re: [Windows,PATCH] Use faster, higher precision timer API
Дата
Msg-id
CA+TgmoajJvruv-yytkihJuhq0mChn_zK3-2yGMQd9NtB8ZcQrw@mail.gmail.com
Ответ на
Список
Дерево обсуждения
[Windows,PATCH] Use faster, higher precision timer API Craig Ringer <craig@2ndquadrant.com>
Re: [Windows,PATCH] Use faster, higher precision timer API Andrew Dunstan <andrew@dunslane.net>
Re: [Windows,PATCH] Use faster, higher precision timer API Andres Freund <andres@2ndquadrant.com>
Re: [Windows,PATCH] Use faster, higher precision timer API Andrew Dunstan <andrew@dunslane.net>
Re: [Windows,PATCH] Use faster, higher precision timer API Craig Ringer <craig@2ndquadrant.com>
Re: [Windows,PATCH] Use faster, higher precision timer API Tom Lane <tgl@sss.pgh.pa.us>
Re: [Windows,PATCH] Use faster, higher precision timer API Andres Freund <andres@2ndquadrant.com>
Re: [Windows,PATCH] Use faster, higher precision timer API Tom Lane <tgl@sss.pgh.pa.us>
Re: [Windows,PATCH] Use faster, higher precision timer API Craig Ringer <craig@2ndquadrant.com>
Re: [Windows,PATCH] Use faster, higher precision timer API Craig Ringer <craig@2ndquadrant.com>
Re: [Windows,PATCH] Use faster, higher precision timer API David Rowley <dgrowleyml@gmail.com>
Re: [Windows,PATCH] Use faster, higher precision timer API Craig Ringer <craig@2ndquadrant.com>
Re: [Windows,PATCH] Use faster, higher precision timer API Craig Ringer <craig@2ndquadrant.com>
Re: [Windows,PATCH] Use faster, higher precision timer API David Rowley <dgrowleyml@gmail.com>
Re: [Windows,PATCH] Use faster, higher precision timer API Craig Ringer <craig@2ndquadrant.com>
Re: [Windows,PATCH] Use faster, higher precision timer API Robert Haas <robertmhaas@gmail.com>
Re: [Windows,PATCH] Use faster, higher precision timer API Craig Ringer <craig@2ndquadrant.com>
Re: [Windows,PATCH] Use faster, higher precision timer API Robert Haas <robertmhaas@gmail.com>
On Thu, Oct 23, 2014 at 5:41 AM, David Rowley  wrote:
> On Thu, Oct 23, 2014 at 1:27 AM, Craig Ringer  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


В списке pgsql-hackers по дате отправления
От: Dag-Erling Smørgrav
Дата:
От: Tom Lane
Дата:
FAQ