-
- Downloads
From: Tom Lane <tgl@sss.pgh.pa.us> Making PQrequestCancel safe to call in a signal handler turned out to be much easier than I feared. So here are the diffs. Some notes: * I modified the postmaster's packet "iodone" callback interface to allow the callback routine to return a continue-or-drop-connection return code; this was necessary to allow the connection to be closed after receiving a Cancel, rather than proceeding to launch a new backend... Being a neatnik, I also made the iodone proc have a typechecked parameter list. * I deleted all code I could find that had to do with OOB. * I made some edits to ensure that all signals mentioned in the code are referred to symbolically not by numbers ("SIGUSR2" not "2"). I think Bruce may have already done at least some of the same edits; I hope that merging these patches is not too painful.
Showing
- doc/src/sgml/protocol.sgml 217 additions, 42 deletionsdoc/src/sgml/protocol.sgml
- src/backend/commands/async.c 6 additions, 6 deletionssrc/backend/commands/async.c
- src/backend/libpq/auth.c 43 additions, 29 deletionssrc/backend/libpq/auth.c
- src/backend/libpq/pqcomm.c 2 additions, 78 deletionssrc/backend/libpq/pqcomm.c
- src/backend/libpq/pqpacket.c 10 additions, 8 deletionssrc/backend/libpq/pqpacket.c
- src/backend/postmaster/postmaster.c 102 additions, 22 deletionssrc/backend/postmaster/postmaster.c
- src/backend/tcop/postgres.c 27 additions, 13 deletionssrc/backend/tcop/postgres.c
- src/backend/utils/init/globals.c 3 additions, 1 deletionsrc/backend/utils/init/globals.c
- src/bin/psql/psql.c 23 additions, 9 deletionssrc/bin/psql/psql.c
- src/include/commands/dbcommands.h 2 additions, 3 deletionssrc/include/commands/dbcommands.h
- src/include/libpq/libpq-be.h 11 additions, 7 deletionssrc/include/libpq/libpq-be.h
- src/include/libpq/libpq.h 3 additions, 9 deletionssrc/include/libpq/libpq.h
- src/include/libpq/pqcomm.h 20 additions, 1 deletionsrc/include/libpq/pqcomm.h
- src/include/miscadmin.h 3 additions, 1 deletionsrc/include/miscadmin.h
- src/include/port/sco.h 0 additions, 1 deletionsrc/include/port/sco.h
- src/interfaces/libpq/fe-connect.c 99 additions, 8 deletionssrc/interfaces/libpq/fe-connect.c
- src/interfaces/libpq/fe-exec.c 11 additions, 39 deletionssrc/interfaces/libpq/fe-exec.c
- src/interfaces/libpq/libpq-fe.h 6 additions, 2 deletionssrc/interfaces/libpq/libpq-fe.h
- src/man/listen.l 2 additions, 4 deletionssrc/man/listen.l
- src/man/notify.l 7 additions, 4 deletionssrc/man/notify.l
Loading
Please register or sign in to comment