]> granicus.if.org Git - postgresql/blobdiff - src/backend/utils/adt/xml.c
Allow CREATE TABLE IF EXIST so succeed if the schema is nonexistent
[postgresql] / src / backend / utils / adt / xml.c
index 3473107160245b56e48c54a96f28b643cae7fbd6..e101ea6349286e0c201636b54861d9c61a2591b7 100644 (file)
@@ -2678,7 +2678,7 @@ schema_to_xml(PG_FUNCTION_ARGS)
        Oid                     nspid;
 
        schemaname = NameStr(*name);
-       nspid = LookupExplicitNamespace(schemaname);
+       nspid = LookupExplicitNamespace(schemaname, false);
 
        PG_RETURN_XML_P(stringinfo_to_xmltype(schema_to_xml_internal(nspid, NULL,
                                                                           nulls, tableforest, targetns, true)));
@@ -2724,7 +2724,7 @@ schema_to_xmlschema_internal(const char *schemaname, bool nulls,
 
        result = makeStringInfo();
 
-       nspid = LookupExplicitNamespace(schemaname);
+       nspid = LookupExplicitNamespace(schemaname, false);
 
        xsd_schema_element_start(result, targetns);
 
@@ -2782,7 +2782,7 @@ schema_to_xml_and_xmlschema(PG_FUNCTION_ARGS)
        StringInfo      xmlschema;
 
        schemaname = NameStr(*name);
-       nspid = LookupExplicitNamespace(schemaname);
+       nspid = LookupExplicitNamespace(schemaname, false);
 
        xmlschema = schema_to_xmlschema_internal(schemaname, nulls,
                                                                                         tableforest, targetns);