Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vzat9-00194U-1Q for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2026 13:43:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vzat7-00GVbe-2T for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2026 13:43:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vzat7-00GVbV-1X for pgsql-hackers@lists.postgresql.org; Mon, 09 Mar 2026 13:43:13 +0000 Received: from mail-dy1-x1334.google.com ([2607:f8b0:4864:20::1334]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vzat6-00000001I56-13Yw for pgsql-hackers@postgresql.org; Mon, 09 Mar 2026 13:43:13 +0000 Received: by mail-dy1-x1334.google.com with SMTP id 5a478bee46e88-2bdcf5970cdso7498520eec.0 for ; Mon, 09 Mar 2026 06:43:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773063791; cv=none; d=google.com; s=arc-20240605; b=TIgVqeiJyqQIjwOmsMpLTxK73MjgHg0+U/yagmst9zu4OK4CQK3Aw/jCrYkCYNJHyv XR53P9crNzQa/i8hs9HW7KzpmlTKTjUIY2tkU2ZYcRTELBm6kM18hfJUuKFMz/pdFYLS 5mM+dxmiy+6yiMFKKfzGSSjHK6ZTZARWuCc1emOcx8ISLyyDdsTXvAyV/riDwVNBYfEm mEjQa6ppUiLTdRIbPpVmD+agdMlG/Ie8f/c4c/mHWvZSGjhaIVjlUwctKUAOLCJSaqr0 UqhKVPEGbmoa7o6LQBVSuhO0izaGSvTL7//6NJMoieIQ0M+szQYR/wrVJWd2pjdgAyAW +JJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cfEDZHGWPGebGR/7Od9LVF//KIfXhtmoonEx+QnC8Do=; fh=5CFGeU7J72xY/+5Qxv7ATLZ8MAZLZOs9ThWVwzQWkic=; b=d0cJC/MtV0c5VGCwEwodRny+YMv84CS1NaP7NMfvNTti8wdJrXOZOfq3C+nBZ3KQOK HNnQ9Qc3oIrFr7dqFs/1IqQN/aAqOJFvx8NjWUz5nrdkCG2prAuHoaJndiHZMdHqnygq e4MdE9NDhibmo8vZG3CyhAVwDoagJ2bnlfarxJYNjBkoMTQy3nHt7KBv/oCGexVkCGKr +BVfZidBX67YW59GBrFx92ZjNFh+R9b2hMgF6nWHcRX2YaWs4Qil+pQ+TvaIV0d0X+3G bist3033UwXn8DRWnfl+hGISfDcURuXNJfPU5GxVxjt4sllj0lvzxidaFAKMjJoE5hTK ZEDA==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773063791; x=1773668591; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cfEDZHGWPGebGR/7Od9LVF//KIfXhtmoonEx+QnC8Do=; b=SWsWPep7Clv8ypEgN8o2M0HSo8Zdn+EY5f9HR3QYyPsM9lSWnBz5vTS08jHuZae/VP M53HCgNRTnIzHgOB+dt4p+ucTDdGP5qVcFWfk0KWVTAbHR7/MvjR/+lg7G36WDnZSHWo je72ivq5Ezh3rWqt4g5JfwZGZmyx+Umt3BSc+j+x/I7JV4kU4lwLyUcnvRhXVHF4Udiv n3K4M8REl85yfnD0aIJkHZ0ByQHfLBMdxp2eeKy/u1roStW6TqPep2vJjL64NWbUZmHf sPP1ngHleFTV89zoKnh4L+mm19r3F172dtVr0dmEqz1A2XweaIpTFdG/QVD4CgVDVUig +mtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773063791; x=1773668591; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=cfEDZHGWPGebGR/7Od9LVF//KIfXhtmoonEx+QnC8Do=; b=gB6LKXiydK1dqt3Fmkg4AgQYH66MJ8S+p0bzUaQCC/sFV/IWvt0fBmAvn4RhD6olb2 k2/V3/+0KHSlW1FZ7SzxIcZYgk8znN3SXM5+4oWfx7kWuqQg/EneCKRcUeM8T9HmQ+Qj QKVA5vxZ/mcHeahoOmU+OSyWQjoVcpj5MQ2fksLV2RCLNyXRizFlCdcUoU6ZaYT1MCXB IK8IQyDnlDqhPfhICJxY4IHoaDYlBqp1sp3XFAJJoJmtRnOi5BpvxVsDG5IJawOPoqYd 6A9w7KbOZK+n3zBfjCUvvZIziLJ22d+Efxmyh4DilyrzBZbml5MMJwkJzGR0rFQW9wWx gf5A== X-Forwarded-Encrypted: i=1; AJvYcCW+y3aFarA6oJpjXEfz71gbnqxbWHFRSkflTgHbfUep4Z5VY+MuIs8Qboq0KfyiibSz3LSbHQ/8fN1q3vG7@postgresql.org X-Gm-Message-State: AOJu0YyhfA31ZhhbzxsW5VtDEu/Qv+DZD8cyCctkRwopzx5mdwdqz4Bf 2aWxuaWOrHct0h2x6SuDfg9tKY2znz0tqqgvLzGzbR+uaWR8+jGqi2SGf49zHIVSMJ5PEzVSOUZ zwQsLXSQ+iRU4pJSyKcItkTPV506YQ/g= X-Gm-Gg: ATEYQzy7pSH8uPAV8QFbe7vCDOin1wf8VO1biIwF5wRrMoBtNNoewVAq9lTwZ3y5DnW 2NOhTUHlIcgbneeAqlwDkMPGV2D+qYyspxiBv1DAaU2S5HaL65o77fYhcrrc/CBb01HXclL463b ylcbe047fnXSVzzzhPt48wy5K6kJje66sjLDYZa735lxxEgX3528kWJbRlZpSN57cf64JjFd5R2 Cpvh0k7U1Fvf8g1b04E7xnTGUxInpbntQzBD+9SVztRYbROeLwnMzGRd5CulkK1ygqNr8koCFhq 1F1t5KM= X-Received: by 2002:a05:7301:4591:b0:2ba:749f:81a7 with SMTP id 5a478bee46e88-2be3e8646bemr5918722eec.21.1773063791377; Mon, 09 Mar 2026 06:43:11 -0700 (PDT) MIME-Version: 1.0 References: <91acb778-42c4-44ef-8888-f18ad9b12a5b@dunslane.net> In-Reply-To: From: Nazir Bilal Yavuz Date: Mon, 9 Mar 2026 16:43:00 +0300 X-Gm-Features: AaiRm52QUJkO6IimBhTfrL4gHyWdGKBhsSLtVX2L_I_I8ML93kZQ04oQ5WR5AQM Message-ID: Subject: Re: Speed up COPY FROM text/CSV parsing using SIMD To: Manni Wood Cc: KAZAR Ayoub , Nathan Bossart , Andrew Dunstan , Neil Conway , Shinya Kato , PostgreSQL-development Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Manni! On Mon, 9 Mar 2026 at 16:31, Manni Wood wrote= : > > I was being too brief. > > The benchmarks I shared were absolutely with lz4 compiled in and 'default= _toast_compression =3D lz4' set in postgresql.conf for every postgres insta= nce I tested with. (Furthermore, I ran `show default_toast_compression` via= `psql` on each postgres instance to be sure 'default_toast_compression =3D= lz4' was really set!) > > Also, all were compiled using meson using `debugoptimized` which results = in `-g -O2`. > > So those are the benchmarks that I shared. Thanks for the clarification. > OK, so my final question, hopefully clarified: If I run additional benchm= arks where pglz is used for default_toast_compression, is it enough to use = the instances I have already compiled with lz4 in them, but with 'default_t= oast_compression =3D pglz` explicitly set in postgresql.conf in a brand new= data dir created by initdb? (In other words, existing data dir deleted, th= en initdb run to make a new data dir, then postgresql.conf edited to ensure= 'default_toast_compression =3D pglz` explicitly set, then and only then st= arting up the cluster for the first time... and finally verifying via `show= default_toast_compression` for good measure.) > > Or should I re-compile with the lz4-is-now-the-default commit completely = excised? Yes, it is clear now; thanks. You don't need to compile without the lz4-is-now-the-default commit. You can compile with lz4 commit and set the 'default_toast_compression =3D pglz' in the postgresql.conf like you said. This should be enough. --=20 Regards, Nazir Bilal Yavuz Microsoft