Re: SQL/XML publishing function experimental patch - Mailing list pgsql-patches

From Tom Lane
Subject Re: SQL/XML publishing function experimental patch
Date
Msg-id 21127.1126533922@sss.pgh.pa.us
Whole thread Raw
In response to SQL/XML publishing function experimental patch  ("Pavel Stehule" <pavel.stehule@hotmail.com>)
Responses Re: SQL/XML publishing function experimental patch
Re: SQL/XML publishing function experimental patch
Re: SQL/XML publishing function experimental patch
List pgsql-patches
"Pavel Stehule" <pavel.stehule@hotmail.com> writes:
> This patch contains SQL/XML public function XMLFOREST, XMLELEMENT, ... based
> on CString type. This patch hasn't high quality, but can be usefull for
> testing funcionality, and maybe for some people.

1. Why did you base the datatype on cstring?  That's inappropriate for
anything except guaranteed-short strings, because it's not toastable.

2. Is it really necessary to hack up the grammar for this?  Seems like
you should create ordinary functions to manipulate the datatype(s).
If every datatype thought it could do this sort of thing, we'd have
a completely unmanageable grammar.

            regards, tom lane

pgsql-patches by date:

Previous
From: Michael Meskes
Date:
Subject: Re: [INTERFACES] [HACKERS] ECPG ignores SAVEPOINT if first statement of a transaction
Next
From: Peter Eisentraut
Date:
Subject: Re: SQL/XML publishing function experimental patch