pgsql: Fix Assert failure in PushOverrideSearchPath when trying to - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix Assert failure in PushOverrideSearchPath when trying to
Date
Msg-id 20100813162735.E37267541D7@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
    pgsql/src/backend/catalog:
        namespace.c (r1.104 -> r1.104.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/catalog/namespace.c?r1=1.104&r2=1.104.2.1)
    pgsql/src/backend/utils/cache:
        plancache.c (r1.15.2.3 -> r1.15.2.4)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/cache/plancache.c?r1=1.15.2.3&r2=1.15.2.4)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix Assert failure in PushOverrideSearchPath when trying to
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Add xml_is_well_formed, xml_is_well_formed_document,