From: | Jeevan Chalke <jeevan(dot)chalke(at)enterprisedb(dot)com> |
---|---|
To: | Oskari Saarenmaa <os(at)ohmu(dot)fi> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [PATCH] Filter error log statements by sqlstate |
Date: | 2014-01-16 13:22:15 |
Message-ID: | CAM2+6=VOuVf6_U8NtGpYz9Mfen=fdKcdgNskO_dKPnsvnpg4tw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi Oskari,
Patch looks good to me now. I have found no issues too. It is good to go in
now.
However, few small suggestions:
1. Whenever we know that a variable is containing only 32 bits, better
define
it as uint32 and not just int (m_sqlstate in get_sqlstate_error_level()
function). int size may differ in size on different platforms.
2. Also always cast the results with the actual return type of the function.
These are my views. Current code has absolutely no issues as such (at least
on
my machine).
Assigning back to you for your views on above points. If you are agree
resend
the patch with changes else feel free to mark it as "Ready for Committor".
Thanks
--
Jeevan B Chalke
Principal Software Engineer, Product Development
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2014-01-16 13:34:23 | Re: Why conf.d should be default, and auto.conf and recovery.conf should be in it |
Previous Message | Alvaro Herrera | 2014-01-16 13:21:34 | Re: Why conf.d should be default, and auto.conf and recovery.conf should be in it |