Modify backend switch parsing to prevent 'insecure' switches
Tom Lane <tgl@sss.pgh.pa.us>
Modify backend switch parsing to prevent 'insecure' switches from being accepted when they are passed from client connection request. Get rid of a couple that no longer do anything (like -P).
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/postmaster.c | modified | +68 −48 |
| src/backend/tcop/postgres.c | modified | +122 −106 |
| src/backend/utils/init/globals.c | modified | +2 −3 |
| src/backend/utils/init/miscinit.c | modified | +2 −1 |
| src/backend/utils/misc/trace.c | modified | +6 −2 |
| src/include/miscadmin.h | modified | +1 −2 |
| src/include/utils/trace.h | modified | +1 −1 |
| src/man/postgres.1 | modified | +6 −15 |
| src/man/postmaster.1 | modified | +2 −2 |