aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/socket.h
diff options
context:
space:
mode:
authorHiroshi Inoue <inoue@tpf.co.jp>2002-04-02 10:50:50 +0000
committerHiroshi Inoue <inoue@tpf.co.jp>2002-04-02 10:50:50 +0000
commitf8da3990b5437e47b7296a6770a3efd215b326d0 (patch)
tree38b031307f4048be70099ad6daf4c8a901c7a177 /src/interfaces/odbc/socket.h
parentc26a44db08677bccc04426b42973bb372e6e3046 (diff)
downloadpostgresql-f8da3990b5437e47b7296a6770a3efd215b326d0.tar.gz
postgresql-f8da3990b5437e47b7296a6770a3efd215b326d0.zip
[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 ...
Diffstat (limited to 'src/interfaces/odbc/socket.h')
-rw-r--r--src/interfaces/odbc/socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interfaces/odbc/socket.h b/src/interfaces/odbc/socket.h
index c49d9fe88d8..2337eb9a087 100644
--- a/src/interfaces/odbc/socket.h
+++ b/src/interfaces/odbc/socket.h
@@ -61,6 +61,7 @@ struct SocketClass_
char *errormsg;
int errornumber;
+ struct sockaddr_in sadr; /* Used for handling connections for cancel */
char reverse; /* used to handle Postgres 6.2 protocol
* (reverse byte order) */