diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-08-29 15:19:51 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-08-29 15:19:51 +0000 |
commit | 0434c46db059a80b0e89397a137dfa10421573f4 (patch) | |
tree | 43f7d6fd2e7a47c1d243ff1cb55f8df06a75b1ba /src/backend/tcop/postgres.c | |
parent | b681bfdd59918e3b65bd0b499075f99b39e511b5 (diff) | |
download | postgresql-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