]> granicus.if.org Git - postgresql/commit
Fix Assert failure in PushOverrideSearchPath when trying to restore a search
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 13 Aug 2010 16:27:35 +0000 (16:27 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 13 Aug 2010 16:27:35 +0000 (16:27 +0000)
commitc358483c51970f723c4bd0ab6e891080b79751ab
tree69af0d3c55c7038bc5d28a3330dcfb5375ab6c1d
parent38095bd06d564060eec3211e1bb3140c81fa9f18
Fix Assert failure in PushOverrideSearchPath when trying to restore a search
path that specifies useTemp, but there is no active temp schema in the
current session.  (This can happen if the path was saved during a transaction
that created a temp schema and was later rolled back.)  For existing callers
it's sufficient to ignore the useTemp flag in this case, though we might
later want to offer an option to create a fresh temp schema.  So far as I can
tell this is just an Assert failure: in a non-assert build, the code would
push a zero onto the new search path, which is useless but not very harmful.
Per bug report from Heikki.

Back-patch to 8.3; prior versions don't have this code.
src/backend/catalog/namespace.c
src/backend/utils/cache/plancache.c