diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-11-28 12:37:27 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-11-28 12:37:27 -0500 |
commit | 96d66bcfc60d9bcb7db767f23d33abf4d8bc7021 (patch) | |
tree | a707fb3a8fc6bf29ba20aecaaf9f71d9f21d3faa /contrib/postgres_fdw/postgres_fdw.c | |
parent | e384ed6cdec691e0f7c9a077d0fb2a357763c335 (diff) | |
download | postgresql-96d66bcfc60d9bcb7db767f23d33abf4d8bc7021.tar.gz postgresql-96d66bcfc60d9bcb7db767f23d33abf4d8bc7021.zip |
Improve performance of OverrideSearchPathMatchesCurrent().
This function was initially coded on the assumption that it would not be
performance-critical, but that turns out to be wrong in workloads that
are heavily dependent on the speed of plpgsql functions. Speed it up by
hard-coding the comparison rules, thereby avoiding palloc/pfree traffic
from creating and immediately freeing an OverrideSearchPath object.
Per report from Scott Marlowe.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions