Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fBI186m08476 for ; Mon, 17 Dec 2001 20:08:06 -0500 (EST) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.4.7) with HTTP id 530735; Mon, 17 Dec 2001 17:08:07 -0800 From: "Josh Berkus" Subject: Re: won't drop the view To: Oleg Lebedev , Josh Berkus Cc: Postgres SQL Mailing List X-Mailer: CommuniGate Pro Web Mailer v.3.4.7 Date: Mon, 17 Dec 2001 17:08:07 -0800 Message-ID: In-Reply-To: <3C1E5BEA.E97CDC74@waterford.org> MIME-Version: 1.0 Content-Type: text/plain; charset="KOI8-R" Content-Transfer-Encoding: 8bit X-Archive-Number: 200112/187 X-Sequence-Number: 6010 Oleg, > 1. I am using PostgreSQL 7.1.2 > 2. Linux RedHat 7.1 > 3. Pentium II 400 with 256 Megs of RAM > 14 out of 17 Gigs are free (there is only one disk on this > system) > 4. Here is the view definition: > 5. None of the tables involved in the view has BLOBs in it. > Row count for the tables are as follows: > activity: 253 > media: 12406 > set: 826 > intsetmedia: 22916 > mediatypemap: 25 > datatable: 318 > dtcol: 1698 > dtrow: 18406 > dtrowmedia: 10238 > > 6. I didn't have debug on when running vacuum, so I can't tell you if > it > raised any errors. Damn. I can only really help with the obvious things, and you've covered most of those. That view should take a long time, given the complexity ... but a long time is 30-60 seconds, not 10 minutes. Therefore: 1. Turn up the debug level in postgres.conf 2. Re-start postgresql, and open a console to tail the log. 3. Watch the log as you: a) Vacuum Analyze b) SELECT from the view again 4. Hope that one of the core team looks into your question. Beyond that, we're down to monkeying with Postgres' memory settings; it's possible (but not likely) that you've exhausted the available sort memory and Postgres is getting stuck in swap-access. However, that's just a stab in the dark. -Josh ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete information technology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco