pgsql: Clean up psql variable code a little: eliminate unnecessary tests

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Clean up psql variable code a little: eliminate unnecessary tests
Date: 2006-06-21 16:05:11
Message-ID: 20060621160511.CC3A39FA7BA@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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 ...

Modified Files:
--------------
pgsql/src/bin/psql:
variables.c (r1.24 -> r1.25)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/variables.c.diff?r1=1.24&r2=1.25)

Browse pgsql-committers by date

  From Date Subject
Next Message Joe Conway 2006-06-21 16:43:11 pgsql: - During dblink_open, if transaction state was IDLE, force cursor
Previous Message User Pgstudy 2006-06-21 13:40:34 fulldisjunction - fd: Some more deformed tuple structures consolidation