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 1vuwWH-00Dv3V-1B for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Feb 2026 17:48:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vuwWG-002hio-05 for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Feb 2026 17:48:24 +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 1vuwWF-002hig-2N for pgsql-hackers@lists.postgresql.org; Tue, 24 Feb 2026 17:48:23 +0000 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vuwWC-00000000zeq-1ckM for pgsql-hackers@postgresql.org; Tue, 24 Feb 2026 17:48:22 +0000 Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-7d19bfe1190so5001664a34.1 for ; Tue, 24 Feb 2026 09:48:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771955301; x=1772560101; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=eR61rNv6QRveJ6cZzpCAK73UJL6mFh4ouBLKR0USkh0=; b=DxDoL/82FBbJatgTHCvN8Omxh29bOiFYLy2DjEK3Fr/+eiV996lEJdD80lbkFN5XiK 73vg3PJBf530EtECyGpD9ovUUt5Bq1tqazrCk9Uv02VkYN1ZByf0rwN06n3MDLmszWuO PPDMj/Fh3ylc0sspvW6knSo1c6CJ6raU17bj5qP0O+B9pWF+G7WIA2ZTfggQ9g0C6Yoc iCAcFnVErgiNjebJ6f8ka/dQpSdXHmM6kOHbja8uxrfnlmk7qh5lsY3zApQl/9wNhFR/ tl/9ccSd+ZrxjnARJBzhYko+91R8JqwuHHJj0t2dn6eZ5Jba+kEuWIjJgLJ7GQFOZhlG dqYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771955301; x=1772560101; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eR61rNv6QRveJ6cZzpCAK73UJL6mFh4ouBLKR0USkh0=; b=AEX4EbK7V4XPlcVBlOfE070MYkT/MvqIhlRdIwN2Gpp7z7IfGFqoUoaf4z7Y7ajDJv cKREoMzk675XL4ElNu2kC+pgODIQrgzXqxfJL9hUFWrZR+R2svyTbTC92z4EKzwvPjfZ C5XS13tKmtjZNodo9sCLpxgzgta7cBz2rHwR1Mj9pw8FiKWf4rX226r641CSm+WuYjX7 7Ln6ST5gUMEGyRtV2198a4jvw0bzb1e0QkgJCyxvQ4d0VSFCgMsLcu0t1ZSjzUHasoLy t+7DUtEDRlyXurLcWFPLyvEbQPoxPa5jNkpTmQVsbVdYDzb6cUCoJ+fZPuVR5ygfiRIQ SfCA== X-Forwarded-Encrypted: i=1; AJvYcCU08EmWmJR/Z9DuOKBZLK7WxeL1i00FtPpB8/g4iicY+3lr6x3VZ85FkoThR97yMnoRjKqPliJjew8ZnxE4@postgresql.org X-Gm-Message-State: AOJu0YyFseke/p64jfWkEhJulcR31Pqj53okUTyC+pkkOQ8qBtUr9gLI ePaH5OrCjZ/rpPz0qGhx9Ow6MXPW5hRIAc+zwiokJZVSpn3otFD55Wz5 X-Gm-Gg: ATEYQzy4+RS4wUddVfq3uySG+uyM9onuimdLpOIN4Hk5Oao67qclLTuSDfLY8F6xASQ WU2LOoO/WfVwzxWJgyCQ3P4ikS0OekXboF3fE5Ajhe5hnjY/UrSpUwxZ65UiM4a5oez94B/8R6g DvJYKP6Zg+/YTeCuLdSX7T+Yh1H8xzCvCFPSrfyGvVEyCxpgHP2DGyHlkvlES6EFxyRbPu69aY1 KCH7mYyaYUvHtg5nD/Z275+UC/KYIVYusaSo7HOY0FC7l97vNilnKTK5zfHeOb04FfA6Ozhiaog LeSyFKtAVskwRoAcKffXy6OcU+cnF1poqKitHXy93iHVP1DG/OGcL6FP72kYU3flAhFGv4Rov09 1X8iA8QpNNsoVs5/oFsDcolh0uzcd1X4UN/t7+0uF2XcEyNbtvbCehTSmnodXvg0Wn7h+AVv8Va lmyIHWc9HBYVelkxlBpee0CYykbFNYOgVQ5wYWRF9tiENsNiZrOifCWvayEXYyWrKa9tZy6vVYx NMH1ptFNZW9bHH/FUgLkUZTkBLS83Bf X-Received: by 2002:a05:6871:b13:b0:40e:a746:1f6f with SMTP id 586e51a60fabf-4157b0cf00cmr6946998fac.28.1771955300762; Tue, 24 Feb 2026 09:48:20 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4157cf9a388sm10737708fac.6.2026.02.24.09.48.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Feb 2026 09:48:20 -0800 (PST) Date: Tue, 24 Feb 2026 11:48:17 -0600 From: Nathan Bossart To: Nazir Bilal Yavuz Cc: Manni Wood , KAZAR Ayoub , Neil Conway , Andrew Dunstan , Shinya Kato , PostgreSQL-development Subject: Re: Speed up COPY FROM text/CSV parsing using SIMD Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Feb 24, 2026 at 04:57:21PM +0300, Nazir Bilal Yavuz wrote: > I will investigate this. However, please note that the current master > includes the inlining commit (dc592a4155), which makes the COPY FROM > faster. In my case, > > 1: current master without dc592a4155: 14400ms > 2: current master: 13960ms (%3 improvement against #1) > 3: current master + SIMD: 15123ms (%5 regression against #1 and %8 > regression against #2) > > Is it possible for you to do a similar test? I mean dropping > dc592a4155 from the current master and re-running the benchmark, that > would be helpful. IMHO as long as the difference from v18 looks reasonable, commit-by-commit regressions and improvements that even out in the end are okay. That's perhaps a bit of mental gymnastics (e.g., what if we had committed the inlining patch for v18?), but I believe that's how we've dealt with similar problems in the past. But maybe there are ways to avoid even these in-development regressions, too... -- nathan