Re: Updated XML patch

Lists: pgsql-patches
From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-patches(at)postgresql(dot)org
Subject: Updated XML patch
Date: 2006-12-14 22:02:05
Message-ID: 200612142302.06307.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Attached is an updated patch for XML functionality, which subsumes all
earlier patches on the subject. This includes a data type with format
checking, and functions to mangle values. For the moment, I have cut
out the inessential stuff such as xpath. The included regression test
file xml.sql shows some of the things that work.

This patch already covers most of the parser work. What is left
hereafter is adjusting all the corner cases, the escaping rules, and
the various XML parser behaviors.

Use configure --with-libxml to build.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

Attachment Content-Type Size
current-xml-patch.bz2 application/x-bzip2 22.6 KB

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Updated XML patch
Date: 2006-12-15 03:19:36
Message-ID: 200612150319.kBF3Jat05120@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches


This looks very nice. Thanks.

---------------------------------------------------------------------------

Peter Eisentraut wrote:
> Attached is an updated patch for XML functionality, which subsumes all
> earlier patches on the subject. This includes a data type with format
> checking, and functions to mangle values. For the moment, I have cut
> out the inessential stuff such as xpath. The included regression test
> file xml.sql shows some of the things that work.
>
> This patch already covers most of the parser work. What is left
> hereafter is adjusting all the corner cases, the escaping rules, and
> the various XML parser behaviors.
>
> Use configure --with-libxml to build.
>
> --
> Peter Eisentraut
> http://developer.postgresql.org/~petere/

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-patches(at)postgresql(dot)org
Subject: Re: Updated XML patch
Date: 2006-12-19 09:48:03
Message-ID: 200612191048.03261.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Here is an updated updated XML patch. Unless there are objections of
the sort that this approach is totally wrong or there is crash
potential, I'd like to get this committed this week and fill in the
gaps next year.

Old News:

> Attached is an updated patch for XML functionality, which subsumes
> all earlier patches on the subject. This includes a data type with
> format checking, and functions to mangle values. For the moment, I
> have cut out the inessential stuff such as xpath. The included
> regression test file xml.sql shows some of the things that work.
>
> This patch already covers most of the parser work. What is left
> hereafter is adjusting all the corner cases, the escaping rules, and
> the various XML parser behaviors.
>
> Use configure --with-libxml to build.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

Attachment Content-Type Size
xml-patch-20061219.bz2 application/x-bzip2 24.7 KB

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Updated XML patch
Date: 2006-12-19 14:45:38
Message-ID: 200612191445.kBJEjdM19223@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Peter Eisentraut wrote:
> Here is an updated updated XML patch. Unless there are objections of
> the sort that this approach is totally wrong or there is crash
> potential, I'd like to get this committed this week and fill in the
> gaps next year.

Great. The XML section of the datatypes documentation will need to be
updated. I can do that once you are done.

---------------------------------------------------------------------------

> Old News:
>
> > Attached is an updated patch for XML functionality, which subsumes
> > all earlier patches on the subject. This includes a data type with
> > format checking, and functions to mangle values. For the moment, I
> > have cut out the inessential stuff such as xpath. The included
> > regression test file xml.sql shows some of the things that work.
> >
> > This patch already covers most of the parser work. What is left
> > hereafter is adjusting all the corner cases, the escaping rules, and
> > the various XML parser behaviors.
> >
> > Use configure --with-libxml to build.
>
> --
> Peter Eisentraut
> http://developer.postgresql.org/~petere/

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +


From: <korryd(at)enterprisedb(dot)com>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Updated XML patch
Date: 2007-01-05 21:03:07
Message-ID: 1168030987.17300.240.camel@sakai.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

> Here is an updated updated XML patch. Unless there are objections of
> the sort that this approach is totally wrong or there is crash
> potential, I'd like to get this committed this week and fill in the
> gaps next year.

Peter - I have a few quick questions about the XML patch that you
submitted back in December.

Nikolay's original patch included support for XMLGEN(), but your patch
does not.

Are you planning to add XMLGEN() support? And if so, will it work
basically the same (from the user's perspective) as the XMLGEN() syntax
in Nikolay's patch?

Is there a problem lurking in XMLGEN() or is just something that you
haven't had a chance to complete?

Thanks.

-- Korry

--
Korry Douglas korryd(at)enterprisedb(dot)com
EnterpriseDB http://www.enterprisedb.com


From: <korryd(at)enterprisedb(dot)com>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Updated XML patch
Date: 2007-01-05 21:22:10
Message-ID: 1168032130.17300.245.camel@sakai.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

s/XMLGEN/XMLAGG/

Sorry, I meant XMLAGG() not XMLGEN()

-- Korry

> > Here is an updated updated XML patch. Unless there are objections of
> > the sort that this approach is totally wrong or there is crash
> > potential, I'd like to get this committed this week and fill in the
> > gaps next year.
>
>
> Peter - I have a few quick questions about the XML patch that you
> submitted back in December.
>
> Nikolay's original patch included support for XMLGEN(), but your patch
> does not.
>
> Are you planning to add XMLGEN() support? And if so, will it work
> basically the same (from the user's perspective) as the XMLGEN()
> syntax in Nikolay's patch?
>
> Is there a problem lurking in XMLGEN() or is just something that you
> haven't had a chance to complete?
>
> Thanks.
>
> -- Korry
>
> --
> Korry Douglas korryd(at)enterprisedb(dot)com
> EnterpriseDB http://www.enterprisedb.com


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: korryd(at)enterprisedb(dot)com
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Updated XML patch
Date: 2007-01-06 11:52:01
Message-ID: 200701061252.02671.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

korryd(at)enterprisedb(dot)com wrote:
> Are you planning to add XMLAGG() support? And if so, will it work
> basically the same (from the user's perspective) as the XMLAGG()
> syntax in Nikolay's patch?

The XMLAGG in Nikolay's patch didn't work right, so I removed it. If
someone wants to clean it up, please send a patch.

(Or maybe it did work right and I misjudged it, but it was mentally in
the way of all the other complications.)

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


From: <korryd(at)enterprisedb(dot)com>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Updated XML patch
Date: 2007-01-06 12:26:13
Message-ID: 1168086373.17300.247.camel@sakai.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

> s/XMLGEN/XMLAGG/
>
> Sorry, I meant XMLAGG() not XMLGEN()

And now that I have the name right, I found the answer:

http://archives.postgresql.org/pgsql-hackers/2006-12/msg01022.php

Sorry to be a bother...

-- Korry