Re: explain root element for auto-explain - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: explain root element for auto-explain
Date
Msg-id 9837222c0908180142pb6d0d48ya067b9c197d34677@mail.gmail.com
Whole thread Raw
In response to Re: explain root element for auto-explain  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Tue, Aug 18, 2009 at 02:11, Andrew Dunstan<andrew@dunslane.net> wrote:
>
> Tom Lane wrote:
>>
>> Andrew Dunstan <andrew.dunstan@pgexperts.com> writes:
>>
>>>
>>> The attached tiny patch sets the <explain> root element for auto-explain
>>> XML output, so it looks something like this:
>>>
>>
>> This looks reasonable in itself, but it sort of begs the question on
>> two other things:
>>
>> * what's the xmlns URL really going to be?
>>
>
> By convention it refers to a place where you publish the schema for the
> document type, but it is in fact completely arbitrary, and can refer to a
> non-existant resource - as long as it is unique - it's just a namespace
> designator, and from an XML POV has no more semantic significance that a
> schema name does in SQL.

I'd suggest using a different namespace than www.postgresql.org, just
to be sure it won't conflict with some system we use in the future.
Perhaps http://schemas.postgresql.org/<whatever>? It doesn't actually
need to exist until we want to put anything there, but it mustn't
conflict with anything else.


-- Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: [PATCH] plpythonu datatype conversion improvements
Next
From: Mark Cave-Ayland
Date:
Subject: Re: Another try at reducing repeated detoast work for PostGIS