X-Original-To: pgsql-docs-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 860999FBECF for ; Sat, 26 Aug 2006 03:08:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 37535-01 for ; Sat, 26 Aug 2006 06:08:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by postgresql.org (Postfix) with SMTP id 9BC379FBECC for ; Sat, 26 Aug 2006 03:08:19 -0300 (ADT) Received: (qmail invoked by alias); 26 Aug 2006 06:08:15 -0000 Received: from dslb-084-063-000-229.pools.arcor-ip.net (EHLO colt.pezone.net) [84.63.0.229] by mail.gmx.net (mp029) with SMTP; 26 Aug 2006 08:08:15 +0200 X-Authenticated: #495269 From: Peter Eisentraut To: Bruce Momjian Subject: Re: New XML section for documentation Date: Sat, 26 Aug 2006 08:08:12 +0200 User-Agent: KMail/1.9.3 Cc: PostgreSQL-development , PostgreSQL-documentation References: <200608252346.k7PNkvT15748@momjian.us> In-Reply-To: <200608252346.k7PNkvT15748@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset="ansi_x3.4-1968" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608260808.13629.peter_e@gmx.net> X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200608/47 X-Sequence-Number: 3665 Bruce Momjian wrote: > XML Document Support > ==================== > XML support is not one capability, but a variety of features > supported by a database. database system > Storage > ------- > PostgreSQL stores XML documents as ordinary text documents. It is "possible" to do that, but this sounds like it's done automatically or implicitly. Maybe: "PostgreSQL does not have a specialized XML data type. The recommended way is to store XML documents as text." > Import/Export > ------------- > Because XML documents are stored as normal text documents, they can > be imported/exported with little complexity. Import/export refers to exporting schema data with XML decorations. Of course you can export column data trivially, but that's not what this is about. > Validation > ---------- > /contrib/xml2 has a function called xml_valid() that can be used in > a CHECK constraint to enforce that a field contains valid XML. It > does not support validation against a specific XML schema. Then this is not validation but only checking for well-formedness. The xml2 README says so, in fact. > Indexing > -------- I think the expression index capability combined with contrib/xml2 is more relevant here than the full-text search capability. > Transforming > ------------ > /contrib/xml2 supports XSL transformations. That's XSLT. > XML to SQL Mapping > ------------------- > This involves converting XML data to and from relational structures. > PostgreSQL has no internal support for such mapping, and relies on > external tools to do such conversions. Are there instances of such tools? -- Peter Eisentraut http://developer.postgresql.org/~petere/