[HACKERS] Proposed patch for ODBC driver w/ C-a-n-c-e-l
Hiroshi Inoue <inoue@tpf.co.jp>
[HACKERS] Proposed patch for ODBC driver w/ C-a-n-c-e-l
From: Bradley McLean <brad@bradm.net>
Patch against 7,2 submitted for comment.
This seems to work just fine; Now, when our users submit a 2 hour
query with four million row sorts by accident, then cancel it 30 seconds
later, it doesn't bog down the server ...
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/odbc/connection.c | modified | +69 −2 |
| src/interfaces/odbc/connection.h | modified | +19 −0 |
| src/interfaces/odbc/descriptor.h | modified | +2 −1 |
| src/interfaces/odbc/execute.c | modified | +8 −1 |
| src/interfaces/odbc/info30.c | modified | +6 −6 |
| src/interfaces/odbc/info.c | modified | +288 −71 |
| src/interfaces/odbc/misc.c | modified | +12 −0 |
| src/interfaces/odbc/misc.h | modified | +3 −0 |
| src/interfaces/odbc/parse.c | modified | +39 −17 |
| src/interfaces/odbc/psqlodbc.h | modified | +1 −1 |
| src/interfaces/odbc/socket.c | modified | +7 −8 |
| src/interfaces/odbc/socket.h | modified | +1 −0 |