summaryrefslogtreecommitdiff
path: root/psycopg/adapter_datetime.h
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-06-04 01:49:03 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-06-04 01:49:03 +0100
commit05659c0d16767f0cba55d0e6acfbe3748aacc719 (patch)
tree3a8905361ed322fca700219742fb075e61f09eae /psycopg/adapter_datetime.h
parentd9c0b8166f9ba17eacb09d5861409ab862447331 (diff)
downloadpsycopg2-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