X-Original-To: pgsql-performance@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 50895474E4F for ; Sat, 26 Apr 2003 12:18:56 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 88C63474E42 for ; Sat, 26 Apr 2003 12:18:51 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h3QGIsU6008336; Sat, 26 Apr 2003 12:18:54 -0400 (EDT) To: jim@nasby.net Cc: pgsql-performance@postgresql.org Subject: Re: Automatic analyze on select into In-reply-to: <20030426101537.F66185@flake.decibel.org> References: <20030426101537.F66185@flake.decibel.org> Comments: In-reply-to "Jim C. Nasby" message dated "Sat, 26 Apr 2003 10:15:37 -0500" Date: Sat, 26 Apr 2003 12:18:54 -0400 Message-ID: <8335.1051373934@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-32.3 required=5.0 tests=BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/217 X-Sequence-Number: 1723 "Jim C. Nasby" writes: > So, question is, would it make sense to automatically do an analyze > after/during a SELECT INTO? I don't think so. Very often, temp tables are small and only used for one or two operations anyway --- so the cost of an ANALYZE wouldn't be repaid. If ANALYZE would be useful, the user can issue one. regards, tom lane