Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B236DB5DBD1 for ; Mon, 20 Jun 2011 04:59:02 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 44640-02 for ; Mon, 20 Jun 2011 07:58:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f174.google.com (mail-iw0-f174.google.com [209.85.214.174]) by mail.postgresql.org (Postfix) with ESMTP id CFB09B5D801 for ; Mon, 20 Jun 2011 04:58:55 -0300 (ADT) Received: by iwn6 with SMTP id 6so973063iwn.19 for ; Mon, 20 Jun 2011 00:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=c2/Vvtfno9KEeOiZpA/9P0WOoinZMhXMPHzikhFB7CY=; b=sf2jaftbng+36DQytea+veSfNf8C97EaCqYNPlwN/xyUBIDd4G5sfXdaL2WS4AR3qc j4Tne3F7rqOI3H7HH5u9BUCTQn/+pyYapf5PC5VlyVnV+SrIYGqOXpbjbBOXyZzo0hzY I8sfdyRlv6s82HMZYoR7d36k+OKqY4RYQpoJM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=UEPtOTKFkP3Uw0EaYxX5AVuBERHtLAyJfKYWKlxYRtiPatCw7/oe2iqBxHxtB8joL5 C7exHzN28I4DNpZ7B+jEchssYusV/MxungDjDrvZyGLnJ0gkqNfXAfbQgskGohP8nV9H lzj5DFx0wfLDOwFzUuRo1RLbRbEVuhOYgcl0A= Received: by 10.42.1.82 with SMTP id 18mr5765023icf.274.1308556735254; Mon, 20 Jun 2011 00:58:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.225.193 with HTTP; Mon, 20 Jun 2011 00:58:15 -0700 (PDT) In-Reply-To: References: <4DFA5AA4.8090001@nsoft.lt> <4DFEEA70.6000009@nsoft.lt> <4DFEF6E9.90404@nsoft.lt> From: Pavel Stehule Date: Mon, 20 Jun 2011 09:58:15 +0200 Message-ID: Subject: Re: generating a large XML document To: Julius Tuskenis Cc: pgsql-performance@postgresql.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201106/175 X-Sequence-Number: 44108 2011/6/20 Pavel Stehule : > 2011/6/20 Julius Tuskenis : >> Thank you, Pavel for your answer >> >> 2011.06.20 09:51, Pavel Stehule ra=C5=A1=C4=97: >>> >>> can you send a profile? >> >> Excuse me, but what do you mean by saying "profile"? I've sent content o= f >> pg_settings in the first post. Please be more specific as I am more of a >> programmer than an server administrator. >> > > a result from oprofile profiler > I looked into code - probably a implementation of xmlagg is too silly xmlagg use a xmlconcat functions - that means repeated xml parsing and xmlserialization. So it is not effective on larger trees :( string_agg is more effective now. The solution is only radical refactoring of xmlagg function. Pavel > Regards > > Pavel > >> -- >> Julius Tuskenis >> Programavimo skyriaus vadovas >> UAB nSoft >> mob. +37068233050 >> >> >> -- >> Sent via pgsql-performance mailing list (pgsql-performance@postgresql.or= g) >> To make changes to your subscription: >> http://www.postgresql.org/mailpref/pgsql-performance >> >