X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3F31FD9C65 for ; Sat, 15 Oct 2005 12:54:24 -0300 (ADT) 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 91528-09 for ; Sat, 15 Oct 2005 15:54:21 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id A1187D8E7C for ; Sat, 15 Oct 2005 12:54:21 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j9FFs8BC029779; Sat, 15 Oct 2005 11:54:08 -0400 (EDT) To: "NSO" Cc: pgsql-performance@postgresql.org Subject: Re: Bytea poor performance In-reply-to: <17260.81.7.89.65.1129382454.squirrel@fmf.vtu.lt> References: <17260.81.7.89.65.1129382454.squirrel@fmf.vtu.lt> Comments: In-reply-to "NSO" message dated "Sat, 15 Oct 2005 16:20:54 +0300" Date: Sat, 15 Oct 2005 11:54:07 -0400 Message-ID: <29778.1129391647@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200510/243 X-Sequence-Number: 15011 "NSO" writes: > Query runs very long: > Total query runtime: 23625 ms. > Data retrieval runtime: 266 ms. > 50 rows retrieved. Notice that the query itself took 266ms. The rest of the time was wasted by your client app trying to format a 23Kb by 50 row table for display. You need to replace your client-side code with something less inefficient about handling wide values. regards, tom lane