Clean up psql variable code a little: eliminate unnecessary tests in
Tom Lane <tgl@sss.pgh.pa.us>
Clean up psql variable code a little: eliminate unnecessary tests in GetVariable() and be consistent about treatment of the list header. Motivated by noticing strspn() taking an unreasonable percentage of runtime --- the call removed from GetVariable() was the only one that could be in a high-usage path ...
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/variables.c | modified | +20 −21 |