Skip site navigation (1) Skip section navigation (2)

Re: SQL/XML publishing function experimental patch

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Pavel Stehule" <pavel(dot)stehule(at)hotmail(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: SQL/XML publishing function experimental patch
Date: 2005-09-12 14:05:22
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
"Pavel Stehule" <pavel(dot)stehule(at)hotmail(dot)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

In response to


pgsql-patches by date

Next:From: Peter EisentrautDate: 2005-09-12 14:27:24
Subject: Re: SQL/XML publishing function experimental patch
Previous:From: Michael MeskesDate: 2005-09-12 12:36:34
Subject: Re: [HACKERS] ECPG ignores SAVEPOINT if first statement of a transaction

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group