Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fBFMJmm48239 for ; Sat, 15 Dec 2001 17:19:48 -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 529646; Sat, 15 Dec 2001 14:19:47 -0800 From: "Josh Berkus" Subject: Re: won't drop the view To: Oleg Lebedev , Postgres SQL Mailing List X-Mailer: CommuniGate Pro Web Mailer v.3.4.7 Date: Sat, 15 Dec 2001 14:19:47 -0800 Message-ID: In-Reply-To: <3C1AB544.9BD4D05A@waterford.org> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200112/155 X-Sequence-Number: 5978 Oleg, > I just vacuumed and vacuumed analyzed my database. Now, I am trying > to > execute a view, which was perfectly working before, but it seems to > be > very slow. It was sitting there for 10 mins before I cancelled it. > Usually it was taking on the order of 5 secs to execute the view. > I just recreated the view, but the problem still persists. > Here is what EXPLAIN tells me: > EXPLAIN select * from progress_report; > Subquery Scan progress_report (cost=16386.56..16386.56 rows=2 > width=128) > -> Sort (cost=16386.56..16386.56 rows=2 width=128) > -> Nested Loop (cost=16299.45..16386.55 rows=2 width=128) > > How can I "restore" the "before-the-vacuum" performance? > thanks, This is not normal. I suspect that you have something wrong with your Postgres system configuration or your system in general. Please post: 1. Your postgres version 2. Your platform (OS and version) 3. Your hardware statistics, including: Processor & RAM Disk space free on your root drive and postgres drive 4. The view definition 5. Row counts on all tables involved in the view, as well as whether those tables have very large text fields or BLOBs. 6. Finally, check your Postgres log to see if VACUUM raised any errors, and to see if selecting the view causes any errors. -Josh Berkus ______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