diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-06-04 01:49:03 +0100 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-06-04 01:49:03 +0100 |
| commit | 05659c0d16767f0cba55d0e6acfbe3748aacc719 (patch) | |
| tree | 3a8905361ed322fca700219742fb075e61f09eae /psycopg/adapter_datetime.h | |
| parent | d9c0b8166f9ba17eacb09d5861409ab862447331 (diff) | |
| download | psycopg2-05659c0d16767f0cba55d0e6acfbe3748aacc719.tar.gz | |
Cleanup of notice processing
The function is always called in the context of functions grabbing the
connection lock, so just use the same critical section instead of releasing
and re-acquiring it. It is not a problem as serious as the notifies process
(ticket #55) as the notices are a psycopg structure, not libpq. However the
change allows again processing notices/notifies in the same place,
which makes sense conceptually, plus we save some lock dance.
Diffstat (limited to 'psycopg/adapter_datetime.h')
0 files changed, 0 insertions, 0 deletions
