Clean up psql variable code a little: eliminate unnecessary tests in
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 21 Jun 2006 16:05:11 +0000 (16:05 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 21 Jun 2006 16:05:11 +0000 (16:05 +0000)
commit42141afd10b2f4c3ea08a2ec7648de503fe4323c
tree4b2442b2221e5acbf2ee2d5d021b4e0e364cc1cc
parent1c0d4717c9cf64fac14702437c131e77abd0b87c
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 ...
src/bin/psql/variables.c