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 1vzVh8-0014Ji-0v for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2026 08:10:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vzVh6-00Euf1-0S for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2026 08:10:28 +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 1vzVh5-00Eues-2J for pgsql-hackers@lists.postgresql.org; Mon, 09 Mar 2026 08:10:28 +0000 Received: from mail-dy1-x132f.google.com ([2607:f8b0:4864:20::132f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vzVh4-00000001Fkp-0Wne for pgsql-hackers@postgresql.org; Mon, 09 Mar 2026 08:10:26 +0000 Received: by mail-dy1-x132f.google.com with SMTP id 5a478bee46e88-2bdfd129c52so7571996eec.0 for ; Mon, 09 Mar 2026 01:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773043825; cv=none; d=google.com; s=arc-20240605; b=DjLu4ufW/3dfoy9vFLqS5NjrorY54jmAe2N6x0gQqjl+KgZyYNl9lojJ7A6yGjoGcr xKzzzId9N8sAwHL6FJ+920cG/sI329Tq/wxHoZefthxL9JlPw22rA2qjH2PzekQoIAXx yqkcXLyhOH9l/Awg90n4KfqeKkZVtDtV1qr9V0Nc/jcLrz/MJMf4PsXOSZ4kyVJtFKDa Sv/jQKO/G/NkmXaRCdO8qjKLq6f0N0HRLUtE/mD8czKOwb8FsrwWD26S2qwDftvqLO/7 tHiskqDV3FE5r511RDylzJ8ph+gy12cOJQ4yHdBXPF3J/OniPg+5/TTw9K5ZG0VY/Z+g kn3Q== 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=ijvMym0vnnxkbQxcMxgm6Ew5n4atpnXzU7M6fS4TKig=; fh=YR3BQagDHQ8Lw8W/XuU1FosKYWx+avVkPSnJrXBy8jw=; b=XN3iWjlyeaCsxstgGHnkr8QZciVw6dotagB3rI3kLe3p1b21yatUQmX4tkUvQ2jCdI h+W3pBebhFqP/y2cK/Y4lRVI2PRv3skaTsi3b5CxHTet9momFRU/kB1pv2E4bqYFf41t CgHEm/rIEPKBEvrVUa1b8k8hT7RJE7eOxkSkmcFuM5h4iz0ek1Ns9DuL13iABPrF6fpz /J2xqZdgxTGia/rjhbOu7m8s1k7xfIxDmCd2gXK1JbRX22u6w3JtEH1ovoJ+2oWuyGAF soBI1QlEcU4PAIMnEyykGfidT+5R07XFa2ZUXeG8jb/1U/Ph7f8CfzKLmU+nvxwL3uOZ akEw==; 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=1773043825; x=1773648625; 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=ijvMym0vnnxkbQxcMxgm6Ew5n4atpnXzU7M6fS4TKig=; b=VzqJ5vs1D+mthAgojtRcvcQcu3jqSxuMrydbFDntXLqdlDZvR3H9195jpAslotiGsT l9etLmSO6w3PftWcoespEFtuGPE4eZXMIIVSX7n+xi8OOL3T9cok6I5rLYFWg269YsVf 6ObdZAl0FkKjha9skuYuPSe2ShvuMG51JUxglWC1MmNZ7n/e5sDaQN0xNcZ5JOt0cOfn CudZQedM0Aupbga9Y+dhZbYRXPhN3HzMukThgndX+Ag3y1mJp2wAAdC/wxnO3WbruSCw oWBz2F/UDkG2iosnnWRvkhHiMBywu3x3D7K7Zy1lqoy7m74DSiai3n4m6aB64syDbhOY 9p2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773043825; x=1773648625; 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=ijvMym0vnnxkbQxcMxgm6Ew5n4atpnXzU7M6fS4TKig=; b=vvj0k8EcwB2tEoDo50iGp89ynmePWEBIWE0BwtLad2XYjufJf0mwp0DfagjDQRxr19 06BBRvOlwTirAJPH8hpVnu6BEkJkuy/tT2Sh3xCSkZTXi1pV6MvR89ooTzNWrIsM5GYk VBM2dfolpVZ4S1ShnmhhCkUD39y77hsXsZ20rTAUZZB5PRizBQnrPI3F6I+l/CeTyE74 CMVu25dL7IdRw4nd3ev9krYD5xZvXExTr+tSXmIXfLz08h31IVst5NZb1JYEx/Wwb/9k M2l0OZdHFK6YXvU+XWSnJ0OErMAqUgDdVRLFmnZepthgOtJJvb427v741V53HVIEO84C rk8w== X-Forwarded-Encrypted: i=1; AJvYcCXMSBDJ9H+5/vwtnyIPle0efYVaXsYsq7i0W3M0QTv+1GU+mLVPkgG/XSlrNsnAd3stzUtOhlkiWlnhSiUH@postgresql.org X-Gm-Message-State: AOJu0YwFWg3hRDtX917gW+EfsF5vAg2rq/4bswWfk++0Na0BmOMYJxAp dNJerI4mov5S/5y7PsmEazwGmcJJmbekam4kbJWn4OGWBEN+L5BC7plZTBo0XOWOPWPKydtRf0K pGeWfbILu+XSm7tIiEgVG49Hdc6/bhgM= X-Gm-Gg: ATEYQzzJ7bm4vuFJ49u3MIhL/9m88xp9mqG6c+0HEcC5e2RfDWlnp0z38Ek2vXQg26H hCAipfkyVhta43MieMJAsJe21CzDwcGgGHCQ/1MjyE54yS83qQ5GrIVOzExc0TxNZRufZPLy6HZ ZQ22tC/o6eNIkuKvorPhMHdRWABpyUBBPAc55YZS0kJuY6hGmOkE+MdZE4Ia1bY8uoJgHSMqs+9 +Jb6Qd6tc39ZP9gqPMXUxKpmX1J+YLU/nxj6PVyMwesy2K+95VHqzjrj4g4pzAE0EVYmjFlv3UJ Cs9dkX8= X-Received: by 2002:a05:7301:3d1a:b0:2be:10f5:42f4 with SMTP id 5a478bee46e88-2be4e063448mr3816304eec.28.1773043825091; Mon, 09 Mar 2026 01:10:25 -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 11:10:13 +0300 X-Gm-Features: AaiRm51fXYBwgdoBfJ7YvXt2EvZ77PVLIrE_XkN_Wms-hHNJlRhVs_0uj9PNTxc 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, On Sun, 8 Mar 2026 at 22:45, Manni Wood wrote= : > > As requested, here are some numbers based on the latest master but with t= he copy code inlining excised (`git revert dc592a41557b072178f1798700bf9c69= cd8e4235`), compared to master with copy code inlining left in place and th= e v11 patch applied. > Both results have lz4 compression in place. Thank you for the benchmark! > I have not run numbers without lz4. I assume I could use the two postgres= instances that I have compiled with lz4, but just set `default_toast_compr= ession =3D pglz` in postgesql.conf for both instances. Let me know if that = is a mistaken assumption on my part. I am a bit confused. Are you asking that for the current benchmark you shared or future benchmarks? I assume your current benchmark has 'default_toast_compression =3D lz4' because your benchmark results are very similar to my benchmark with 'default_toast_compression =3D lz4' but I just wanted to make sure. What you said about editing postgresql.conf is correct but you need to make this change before creating the Postgres instance with 'pg_ctl ... start' command, otherwise it won't have an effect and you need to restart the instance to see the effect. Also, If you want to benchmark without lz4 change, you can just use the "SET default_toast_compression to 'pglz';" command in psql, then you don't need to edit postgresql.conf. Please note that this will affect only the psql instance you typed the command. To make things easier, you can run the 'SHOW default_toast_compression;' command to see the current value of 'default_toast_compression'. --=20 Regards, Nazir Bilal Yavuz Microsoft