Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jsUBg-0005ST-L8 for pgsql-general@arkaria.postgresql.org; Mon, 06 Jul 2020 16:41:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jsUBd-0006jI-6x for pgsql-general@arkaria.postgresql.org; Mon, 06 Jul 2020 16:41:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jsUBc-0006jA-Jn for pgsql-general@lists.postgresql.org; Mon, 06 Jul 2020 16:41:44 +0000 Received: from mail.dalibo.com ([212.85.157.172]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jsUBZ-000879-1Q for pgsql-general@lists.postgresql.org; Mon, 06 Jul 2020 16:41:43 +0000 Received: from [192.168.74.151] (82-64-99-9.subs.proxad.net [82.64.99.9]) by mail.dalibo.com (Postfix) with ESMTPSA id CD7DD2217F for ; Mon, 6 Jul 2020 18:41:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1594053697; bh=yoRNkxezhlCJG3QdcLnksHg8JhvYp7dmjeNcGPIZU3g=; h=To:From:Subject:Date:From; b=JGoj7jX6NXGy2wq4xhJ2pym5mZU8fVjjtB7DDmyo4o88ay4W548OzhusOCbNPRvp/ xBvku1vMcZOXgI9b+Qe1H2Yrf/daAnRcZgDHSHVOGXFKxc2ei8id63FpDbFYNJ2mT+ xd5DcCr0rwYdFuyL1ns6jclBmzt44S+hgrKu0TXE= To: pgsql-general@lists.postgresql.org From: Christophe Courtois Organization: Dalibo Subject: Pgbench : vacuum default behaviour history Message-ID: <5d78a46f-d7a8-dd35-644b-367488fb60ce@dalibo.com> Date: Mon, 6 Jul 2020 18:41:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: fr-FR Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, We're wondering why pgbench behaves this way by default: "With neither -n nor -v, pgbench will vacuum the pgbench_tellers and pgbench_branches tables, and will truncate pgbench_history." Why pgbench_accounts not vacuumed by default? I've dug the history of pgbench until 1999. The vaccum of tellers|branches was added when creating the pgbench contrib in Jan 2000, but I've not found any explanation or discussion. My hypothesis is that vaccuuming the accounts was too long in 1999, so it could be skipped for quick tests. And it was never changed. Did I miss something? -- Christophe Courtois Consultant Dalibo https://dalibo.com/