Move find_my_exec() way up into main.c so it is available to the
Bruce Momjian <bruce@momjian.us>
Move find_my_exec() way up into main.c so it is available to the timezone code and other places. Remove elog() calls from find_my_exec; do fprintf(stderr) instead. We can then remove the exec.c handling in the makefile because it doesn't have to be built to suppress elog calls.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/main/main.c | modified | +9 −1 |
| src/backend/postmaster/postmaster.c | modified | +1 −10 |
| src/backend/tcop/postgres.c | modified | +4 −11 |
| src/bin/initdb/Makefile | modified | +3 −7 |
| src/bin/pg_dump/Makefile | modified | +4 −8 |
| src/bin/psql/Makefile | modified | +3 −7 |
| src/bin/psql/print.c | modified | +4 −1 |
| src/interfaces/ecpg/preproc/Makefile | modified | +3 −7 |
| src/port/exec.c | modified | +60 −22 |
| src/port/pipe.c | modified | +1 −42 |