diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-05-27 19:20:16 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-05-27 19:20:16 +0000 |
commit | de57ea162c781314352da9daea27e01face1490c (patch) | |
tree | 5a7a613967627cca20fc49266310859ea859b3d9 /src/backend/parser | |
parent | 34025d82228ec4973fe82b90b7d9b4c1727d9c79 (diff) | |
download | postgresql-de57ea162c781314352da9daea27e01face1490c.tar.gz postgresql-de57ea162c781314352da9daea27e01face1490c.zip |
Change ps_status.c to explicitly track the current logical length of ps_buffer.
This saves cycles in get_ps_display() on many popular platforms, and more
importantly ensures that get_ps_display() will correctly return an empty
string if init_ps_display() hasn't been called yet. Per trouble report
from Ray Stell, in which log_line_prefix %i produced junk early in backend
startup.
Back-patch to 8.0. 7.4 doesn't have %i and its version of get_ps_display()
makes no pretense of avoiding pad junk anyhow.
Diffstat (limited to 'src/backend/parser')
0 files changed, 0 insertions, 0 deletions