• Tom Lane's avatar
    Fix Assert failure in PushOverrideSearchPath when trying to restore a search · 2a7349f0
    Tom Lane authored
    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.
    2a7349f0
namespace.c 97.5 KB