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 1mzTXZ-0003BF-IQ for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Dec 2021 01:02:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mzTXY-0007xd-4E for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Dec 2021 01:02:04 +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 1mzTXX-0007xU-Rt for pgsql-hackers@lists.postgresql.org; Tue, 21 Dec 2021 01:02:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mzTXV-00089B-O5 for pgsql-hackers@lists.postgresql.org; Tue, 21 Dec 2021 01:02:02 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1BL11xLT2683974; Mon, 20 Dec 2021 20:01:59 -0500 From: Tom Lane To: Tomas Vondra cc: Peter Eisentraut , PostgreSQL Hackers Subject: Re: sequences vs. synchronous replication In-reply-to: <8231183d-1077-5394-1ffa-0c9d8c3905b0@enterprisedb.com> References: <712cad46-a9c8-1389-aef8-faf0203c9be9@enterprisedb.com> <1452362.1639803168@sss.pgh.pa.us> <38a6a779-ee8d-de3c-fbd7-709285be88fa@enterprisedb.com> <7869761b-fdc7-6f7d-dc95-9ba8315a8ecf@enterprisedb.com> <1637476.1639862832@sss.pgh.pa.us> <8e24a470-b092-3c9f-0614-acd9df3f724f@enterprisedb.com> <8231183d-1077-5394-1ffa-0c9d8c3905b0@enterprisedb.com> Comments: In-reply-to Tomas Vondra message dated "Tue, 21 Dec 2021 01:53:02 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2683972.1640048519.1@sss.pgh.pa.us> Date: Mon, 20 Dec 2021 20:01:59 -0500 Message-ID: <2683973.1640048519@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tomas Vondra writes: > OK, I did a quick test with two very simple benchmarks - simple select > from a sequence, and 'pgbench -N' on scale 1. Benchmark was on current > master, patched means SEQ_LOG_VALS was set to 1. But ... pgbench -N doesn't use sequences at all, does it? Probably inserts into a table with a serial column would constitute a plausible real-world case. regards, tom lane