aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-08-29 15:19:51 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-08-29 15:19:51 +0000
commit0434c46db059a80b0e89397a137dfa10421573f4 (patch)
tree43f7d6fd2e7a47c1d243ff1cb55f8df06a75b1ba /src/backend/tcop/postgres.c
parentb681bfdd59918e3b65bd0b499075f99b39e511b5 (diff)
downloadpostgresql-0434c46db059a80b0e89397a137dfa10421573f4.tar.gz
postgresql-0434c46db059a80b0e89397a137dfa10421573f4.zip
Invent an assign-hook mechanism for psql variables similar to the one
existing for backend GUC variables, and use this to eliminate repeated fetching/parsing of psql variables in psql's inner loops. In a trivial test with lots of 'select 1;' commands, psql's CPU time went down almost 10%, although of course the effect on total elapsed time was much less. Per discussion about how to ensure the upcoming FETCH_COUNT patch doesn't cost any performance when not being used.
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions