Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d6HfP-0005YT-Bm for pgsql-hackers@arkaria.postgresql.org; Thu, 04 May 2017 14:23:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d6HfO-0002VH-NE for pgsql-hackers@arkaria.postgresql.org; Thu, 04 May 2017 14:23:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d6Hdt-0008EP-5v for pgsql-hackers@postgresql.org; Thu, 04 May 2017 14:22:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d6Hdq-0001F7-OK for pgsql-hackers@postgresql.org; Thu, 04 May 2017 14:22:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v44EM1wa007131; Thu, 4 May 2017 10:22:01 -0400 From: Tom Lane To: Alvaro Herrera cc: pgsql-hackers@postgresql.org Subject: Re: Reducing runtime of stats regression test In-reply-to: <20170504135449.zepyxepq6ug5pgim@alvherre.pgsql> References: <20170504135449.zepyxepq6ug5pgim@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Thu, 04 May 2017 10:54:49 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7129.1493907721.1@sss.pgh.pa.us> Date: Thu, 04 May 2017 10:22:01 -0400 Message-ID: <7130.1493907721@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Alvaro Herrera writes: > Tom Lane wrote: >> We can just start a new connection with \c, and >> let wait_for_stats wait for the old one to send its stats before quitting. >> Even on my oldest and slowest buildfarm machines, starting a new session >> takes well under one second. > So you changed table prevstats from temp to permanent; Right, so it would survive into the new session. > perhaps make it unlogged? Hardly seems worth it; there's not much data in it. And we're not generally in the habit of marking short-lived tables as unlogged elsewhere in the regression tests. (Maybe we should make some effort to have some of them be so marked, but that seems like material for its own patch.) > I wonder if it'd be useful to have a "pg_stat_flush" or something, which > sends out whatever is queued in this session. Then you wouldn't need > the reconnection. Yes, but that would be getting into the realm of new features, not post-feature-freeze test adjustments. It certainly couldn't be a candidate for back-patching. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers