]> granicus.if.org Git - postgresql/commit
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)
commit04c5b69603c4ec7f80022d0ae6d92ad8a6730141
tree86186200560ef3be7af892982b5b0e86a0b313fe
parent3f9aace723213b2d2c34cd74144b675faced3a25
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