Fix Assert failure in PushOverrideSearchPath when trying to restore a search
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 13 Aug 2010 16:27:28 +0000 (16:27 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 13 Aug 2010 16:27:28 +0000 (16:27 +0000)
commitdd56a9d6ededebc25e8f57f9d3a58e1b94f42a81
tree06b9e8db4de021f697d056045feb69641f3c2fce
parent86003b80cb05b7e15966d48c65ecba02348e7e57
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