Substantial rewrite of async.c to avoid problems with non-reentrant stdio
Tom Lane <tgl@sss.pgh.pa.us>
Substantial rewrite of async.c to avoid problems with non-reentrant stdio and possibly other problems. Minor changes in xact.c and postgres.c's main loop to support new handling of async NOTIFY.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xact.c | modified | +29 −16 |
| src/backend/commands/async.c | modified | +575 −473 |
| src/backend/tcop/postgres.c | modified | +20 −5 |
| src/backend/utils/misc/trace.c | modified | +0 −4 |
| src/include/access/xact.h | modified | +2 −1 |
| src/include/commands/async.h | modified | +19 −8 |
| src/include/utils/trace.h | modified | +0 −4 |