X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 988509DCA82 for ; Fri, 20 Jan 2006 16:51:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66410-05 for ; Fri, 20 Jan 2006 16:51:36 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svana.org (svana.org [125.62.94.225]) by postgresql.org (Postfix) with ESMTP id B8C979DCB68 for ; Fri, 20 Jan 2006 16:51:33 -0400 (AST) Received: from kleptog by svana.org with local (Exim 4.50) id 1F03EK-000102-LE; Sat, 21 Jan 2006 07:51:32 +1100 Date: Fri, 20 Jan 2006 21:51:32 +0100 From: Martijn van Oosterhout To: Tom Lane Cc: Stephan Vollmer , pgsql-performance@postgreSQL.org Subject: Re: [GENERAL] Creation of tsearch2 index is very slow Message-ID: <20060120205132.GF31908@svana.org> Reply-To: Martijn van Oosterhout References: <43D0ED57.1020608@gmx.de> <17454.1137771321@sss.pgh.pa.us> <20060120170452.GC31908@svana.org> <26153.1137784469@sss.pgh.pa.us> <20060120201036.GE31908@svana.org> <26583.1137788505@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+JUInw4efm7IfTNU" Content-Disposition: inline In-Reply-To: <26583.1137788505@sss.pgh.pa.us> X-PGP-Key-ID: Length=1024; ID=0x0DC67BE6 X-PGP-Key-Fingerprint: 295F A899 A81A 156D B522 48A7 6394 F08A 0DC6 7BE6 X-PGP-Key-URL: User-Agent: Mutt/1.5.9i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kleptog@svana.org X-SA-Exim-Scanned: No (on svana.org); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.13 required=5 tests=[AWL=0.130] X-Spam-Score: 0.13 X-Spam-Level: X-Archive-Number: 200601/361 X-Sequence-Number: 16839 --+JUInw4efm7IfTNU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 20, 2006 at 03:21:45PM -0500, Tom Lane wrote: > If the totals given by gprof are correct, then it's down in the noise. > I don't think I trust that too much ... but I don't see anything in the > gprof manual about how to include a dynamically loaded library in the > profile. (I did compile tsearch2 with -pg, but that's evidently not > enough.) There is some mention on the web of an environment variable you can set: LD_PROFILE=3D These pages seem relevent: http://sourceware.org/ml/binutils/2002-04/msg00047.html http://www.scit.wlv.ac.uk/cgi-bin/mansec?1+gprof It's wierd how some man pages for gprof describe this feature, but the one on my local system doesn't mention it. > I'll see if I can link tsearch2 statically to resolve this question. That'll work too... --=20 Martijn van Oosterhout http://svana.org/kleptog/ > Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a > tool for doing 5% of the work and then sitting around waiting for someone > else to do the other 95% so you can sue them. --+JUInw4efm7IfTNU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFD0U1UIB7bNG8LQkwRAmr/AJ98WSeO6bufL6WgQR/cUAvIMOJMAwCeJ+mN XdsbU8o8VyyJrhfZLlI7JVs= =7MCw -----END PGP SIGNATURE----- --+JUInw4efm7IfTNU--