Remove the -P options of oid2name and pgbench, as they are security
Tom Lane <tgl@sss.pgh.pa.us>
Remove the -P options of oid2name and pgbench, as they are security hazards. Instead teach these programs to prompt for a password when necessary, just like all our other programs. I did not bother to invent -W switches for them, since the return on investment seems so low.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/oid2name/oid2name.c | modified | +43 −24 |
| contrib/pgbench/pgbench.c | modified | +40 −26 |
| doc/src/sgml/oid2name.sgml | modified | +1 −7 |
| doc/src/sgml/pgbench.sgml | modified | +1 −6 |