X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CFB7B8B9E5C for ; Mon, 7 Feb 2005 14:08:00 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 65678-05 for ; Mon, 7 Feb 2005 14:07:47 +0000 (GMT) Received: from mail.logi-track.com (burro.logi-track.com [213.239.193.212]) by svr1.postgresql.org (Postfix) with ESMTP id 371E18B9CE7 for ; Mon, 7 Feb 2005 14:07:49 +0000 (GMT) Received: from kingfisher.intern.logi-track.com (J2bc5.j.pppool.de [85.74.43.197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logi-track.com (Postfix) with ESMTP id BA21C306BE; Mon, 7 Feb 2005 15:07:50 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logi-track.com (Postfix) with ESMTP id EBCD1AB100; Mon, 7 Feb 2005 15:07:45 +0100 (CET) Message-ID: <42077630.5020802@logi-track.com> Date: Mon, 07 Feb 2005 15:07:44 +0100 From: Markus Schaber User-Agent: Mozilla Thunderbird 1.0 (X11/20050116) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: Tom Lane Cc: PostgreSQL Performance List , PostGIS Users Discussion Subject: Re: Bad query optimizer misestimation because of TOAST References: <42010C24.90301@logi-track.com> <188.1107366272@sss.pgh.pa.us> <42011B0B.2050305@logi-track.com> <9501.1107388153@sss.pgh.pa.us> In-Reply-To: <9501.1107388153@sss.pgh.pa.us> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig86AFC0EBCEDD40759EDB9C96" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200502/113 X-Sequence-Number: 10442 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig86AFC0EBCEDD40759EDB9C96 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Hi, Tom, Tom Lane schrieb: > Markus Schaber writes: >> [Query optimizer misestimation using lossy GIST on TOASTed columns] > > What I would be inclined to do is to extend ANALYZE to make an estimate > of the extent of toasting of every toastable column, and then modify > cost_qual_eval to charge a nonzero cost for evaluation of Vars that are > potentially toasted. What to do now? To fix this issue seems to be a rather long-term job. Is it enough to document workarounds (as in PostGIS), provided that there are such workarounds for other GIST users? Is there a bug tracking system we could file the problem, so it does not get lost? Markus -- markus schaber | dipl. informatiker logi-track ag | rennweg 14-16 | ch 8001 zürich phone +41-43-888 62 52 | fax +41-43-888 62 53 mailto:schabios@logi-track.com | www.logi-track.com --------------enig86AFC0EBCEDD40759EDB9C96 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCB3YwOVWsnapT9i0RAkmrAJ469QuAqfurPu1dETeMGgFI4gvJcgCfdDJ+ ofT+SBni9zFI3iY/474TEjo= =wyhY -----END PGP SIGNATURE----- --------------enig86AFC0EBCEDD40759EDB9C96--