OSDN Git Service

Fix plancache so that any required replanning is done with the same
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 23 Mar 2007 19:53:52 +0000 (19:53 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 23 Mar 2007 19:53:52 +0000 (19:53 +0000)
commit547b6e537aa8bbae83a8a4c4d0d7f216390bdb9c
tree0a8e84561de60017cdbcb2080aa444706c1af404
parent4c35ec53a9e8e9c5496b2e33c6b568c0cfbdb7e3
Fix plancache so that any required replanning is done with the same
search_path that was active when the plan was first made.  To do this,
improve namespace.c to support a stack of "override" search path settings
(we must have a stack since nested replan events are entirely possible).
This facility replaces the "special namespace" hack formerly used by
CREATE SCHEMA, and should be able to support per-function search path
settings as well.
src/backend/catalog/namespace.c
src/backend/commands/schemacmds.c
src/backend/utils/cache/plancache.c
src/include/catalog/namespace.h
src/include/utils/plancache.h
src/test/regress/expected/plancache.out
src/test/regress/sql/plancache.sql