From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Arrange to cache FdwRoutine structs in foreign tables' relcache |
Date: | 2013-03-07 04:48:33 |
Message-ID: | E1UDSkr-0006rb-QG@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Arrange to cache FdwRoutine structs in foreign tables' relcache entries.
This saves several catalog lookups per reference. It's not all that
exciting right now, because we'd managed to minimize the number of places
that need to fetch the data; but the upcoming writable-foreign-tables patch
needs this info in a lot more places.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/1908abc4a37d397356c9cdf0fd31c33a86281d63
Modified Files
--------------
src/backend/commands/analyze.c | 2 +-
src/backend/executor/nodeForeignscan.c | 2 +-
src/backend/foreign/foreign.c | 46 ++++++++++++++++++++++++++++++++
src/backend/optimizer/path/allpaths.c | 3 --
src/backend/optimizer/util/plancat.c | 8 +++++
src/backend/utils/cache/relcache.c | 5 +++-
src/include/foreign/fdwapi.h | 1 +
src/include/utils/rel.h | 11 +++++++
8 files changed, 72 insertions(+), 6 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2013-03-07 08:55:04 | Re: Materialized views WIP patch |
Previous Message | Peter Eisentraut | 2013-03-07 04:45:55 | pgsql: Add fe_memutils.c to nls.mk where used |