X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 6E845F002A for ; Sun, 8 Jun 2003 15:09:49 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 61412-05 for ; Sun, 8 Jun 2003 15:09:39 +0000 (GMT) Received: from europa.janwieck.net (h00045a2e4e7c.ne.client2.attbi.com [24.131.181.55]) by svr1.postgresql.org (Postfix) with ESMTP id 254E9F0030 for ; Sun, 8 Jun 2003 15:09:38 +0000 (GMT) Received: from Yahoo.com (linksys.janwieck.net [192.168.192.1]) (authenticated) by europa.janwieck.net (8.11.6/8.11.6) with ESMTP id h58F9TO15661; Sun, 8 Jun 2003 11:09:29 -0400 Message-ID: <3EE35169.8000706@Yahoo.com> Date: Sun, 08 Jun 2003 11:08:25 -0400 From: Jan Wieck Organization: Unorganized User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Olbersen Cc: pgsql-sql@postgresql.org Subject: Re: (long) What's the problem? References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200306/57 X-Sequence-Number: 13815 David Olbersen wrote: > Anybody have any ideas about a problem with this query? > > urldb2=> EXPLAIN > urldb2-> SELECT > urldb2-> id, > urldb2-> source, > urldb2-> insertedby, > urldb2-> insertedon, > urldb2-> priority > urldb2-> FROM > urldb2-> indexscan > urldb2-> WHERE > urldb2-> lower( > urldb2-> substring( > urldb2-> urlhost( source ), rposition( 'www.', urlhost( source ) ) + 2 > urldb2-> ) > urldb2-> ) ~ '^q.*' > urldb2-> ORDER BY source; > > QUERY PLAN > ------------------------------------------------------------------------------------------------------------------------------------------- > Sort (cost=23.50..23.50 rows=3 width=48) > Sort Key: source > -> Seq Scan on indexscan (cost=0.00..23.47 rows=3 width=48) > Filter: (lower("substring"(urlhost(source), (rposition('www.'::text, (urlhost(source))::character varying) + 2))) ~ '^q.*'::text) > (4 rows) > > OK, cost=23.50..23.50, should be a quickie. I'll EXPLAIN ANALYZE just to be safe: > > urldb2=> EXPLAIN ANALYZE > urldb2-> SELECT > urldb2-> id, > urldb2-> source, > urldb2-> insertedby, > urldb2-> insertedon, > urldb2-> priority > urldb2-> FROM > urldb2-> indexscan > urldb2-> WHERE > urldb2-> lower( > urldb2-> substring( > urldb2-> urlhost( source ), rposition( 'www.', urlhost( source ) ) + 2 > urldb2-> ) > urldb2-> ) ~ '^q.*' > urldb2-> ORDER BY source; > > server closed the connection unexpectedly > This probably means the server terminated abnormally > before or while processing the request. > The connection to the server was lost. Attempting reset: Failed. If I would be you I would unlimit the coresize in the environment the postmaster is running, eventually recompile with debug symbols enabled and look at the stack backtrace of the coredump created when then backend crashes. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #