X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 65961D1EAA8 for ; Tue, 20 Apr 2004 22:51:33 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 16943-10 for ; Tue, 20 Apr 2004 22:51:29 -0300 (ADT) Received: from outbound.mailhop.org (outbound.mailhop.org [63.208.196.171]) by svr1.postgresql.org (Postfix) with ESMTP id C1CA3D1F36C for ; Tue, 20 Apr 2004 13:47:36 -0300 (ADT) Received: from ool-4352919e.dyn.optonline.net ([67.82.145.158] helo=matth.zeut.net) by outbound.mailhop.org with asmtp (Exim 4.20) id 1BFyPG-0009dr-GQ; Tue, 20 Apr 2004 12:47:34 -0400 Received: from 192.154.91.225 (SquirrelMail authenticated user dbmail2user); by matth.zeut.net with HTTP; Tue, 20 Apr 2004 11:48:05 -0400 (EDT) Message-ID: <51628.192.154.91.225.1082476085.squirrel@192.154.91.225> In-Reply-To: <200404201525.i3KFPp809934@candle.pha.pa.us> References: <4032329C.5010703@nexcerpt.com> <200404201525.i3KFPp809934@candle.pha.pa.us> Date: Tue, 20 Apr 2004 11:48:05 -0400 (EDT) Subject: Re: pg_autovacuum crashes when query fails for temp tables From: "Matthew T. O'Connor" To: "Bruce Momjian" Cc: "Jeff Boes" , "PostgreSQL-development" , matthew@zeut.net User-Agent: SquirrelMail/1.5.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Mail-Handler: MailHop Outbound by DynDNS.org X-Report-Abuse-To: abuse@dyndns.org X-MHO-User: Zeut X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.0 tagged_above=0.0 required=5.0 tests=PRIORITY_NO_NAME, RCVD_IN_NJABL, RCVD_IN_SORBS X-Spam-Level: * X-Archive-Number: 200404/598 X-Sequence-Number: 52520 Yeah, I will, I just don't know when. I have been trying to get to this and lots of other pg_autovacuum tasks, but my schedule has been quite crazy as of late. Anyway, this should probably be a pretty simple patch, so I can probably find some time to look at it soon. Any idea on the 7.4.3 release timeline? > > I looked into this and I see a number of cases where pg_autovacuum calls > send_query(), but doesn't test for a NULL return from the function. > > Matthew, would you look into this and submit a patch? Thanks. > > --------------------------------------------------------------------------- > > Jeff Boes wrote: >> Recently I installed and started pg_autovacuum against my new Pg 7.4.1 >> installation. We use a fairly large number of temporary tables within an >> application (that is, several copies of this application may be running, >> and each creates and drops several temp tables as they cycle through >> their workload). Here's what I think happened, based on the log >> (pg_autovacuum's and the postmaster's): >> >> pg_autovacuum.log: >> [2004-02-15 08:10:01 AM] Performing: ANALYZE "pg_temp_13"."tmp_targs" >> [2004-02-15 08:10:01 AM] Can not refresh statistics information from the >> database nexcerpt. >> [2004-02-15 08:10:01 AM] The error is [ERROR: relation >> "pg_temp_13.tmp_targs" does not exist >> >> postmaster.log: >> 2004-02-15 08:10:01 [31563] ERROR: relation "pg_temp_13.tmp_targs" does >> not exist >> 2004-02-15 08:10:01 [31563] LOG: unexpected EOF on client connection >> >> >> It appears that pg_autovacuum collected the name of a temp table, and >> later tried to analyze it. The table was gone by then, and this caused >> the daemon to exit. As this happened on a Sunday morning, my weekend >> experiment to see how pg_autovacuum would maintain our test database was >> rather spoiled ... 8-( >> >> -- >> Jeff Boes vox 269.226.9550 ext 24 >> Database Engineer fax 269.349.9076 >> Nexcerpt, Inc. http://www.nexcerpt.com >> ...Nexcerpt... Extend your Expertise >> >> >> ---------------------------(end of broadcast)--------------------------- >> TIP 8: explain analyze is your friend >> > > -- > Bruce Momjian | http://candle.pha.pa.us > pgman@candle.pha.pa.us | (610) 359-1001 > + If your life is a hard drive, | 13 Roberts Road > + Christ can be your backup. | Newtown Square, Pennsylvania > 19073 > >