Further cleanup of ps_status setup code. On platforms where the
Tom Lane <tgl@sss.pgh.pa.us>
Further cleanup of ps_status setup code. On platforms where the environment strings need to be moved around, do so when called from initial startup (main.c), not in init_ps_status. This eliminates the former risk of invalidating saved environment-string pointers, since no code has yet had a chance to grab any such pointers when main.c is running.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/main/main.c | modified | +27 −22 |
| src/backend/postmaster/pgstat.c | modified | +1 −7 |
| src/backend/postmaster/postmaster.c | modified | +2 −10 |
| src/backend/utils/misc/ps_status.c | modified | +65 −49 |