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 1vsTZx-002zZn-0C for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Feb 2026 22:30:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vsTZv-00CiQD-24 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Feb 2026 22:29:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vsTZv-00CiPw-1C for pgsql-hackers@lists.postgresql.org; Tue, 17 Feb 2026 22:29:59 +0000 Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vsTZt-00000001GaN-2lrA for pgsql-hackers@postgresql.org; Tue, 17 Feb 2026 22:29:59 +0000 Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-45f004e7d71so195298b6e.1 for ; Tue, 17 Feb 2026 14:29:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771367396; x=1771972196; 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=Fgqhnbenz2H3b2G7tCXhNXfE89SEtCgDA2mrhXKeKWI=; b=Mq4OORybmgPX2+sZuL2lB8xBu7uIY6Prw3RDu0jLtjueJ2HINit0Rq9ru7TfsK7kLQ Ko//Gbvwx6uZKyECtNxuJA9Qd/o/fPsWShEpfkvltkXr2vaa3Hf2noxrhBc0zdGR/7y9 Td32lbQcgzP9gvtoHTAYPb9uf9Ak8SpTWW854P0PPpFFRoNbclWNQtJCegk4wQhYdU+X WRmUj5Oj4NJRTVIP4ShKJ5/cHSxkCJ4jYm8TB7hYMJ4Bpp4d0ecxukH9N/N8x7qE719w Q9tKVgkBjGdORiDkky95Xg7+cWLXhjRpFITIXKAVSTWnU1xVbfampXNwanfVIwzycoyD gjnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771367396; x=1771972196; 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=Fgqhnbenz2H3b2G7tCXhNXfE89SEtCgDA2mrhXKeKWI=; b=hYwU8sMYwCPeCXwu9sqYnrpNbCEybrPucWEI+cDXnQ6bkIfvAi945QVexw8GrLkT+z FMf7mlDbKkZiKFFa2PNTTMCobVgs16B07lqeZifePlssnreOkSVHSPIOAsa6As/Za4OJ WhbmOBNGt0Rwk/03avpmrjDdHdRG8ypb2xqReY+Jeay87mz3ZDGOjHlfMrETs8V3diQQ K6uvcvOtoBncC7dRE28yUb0eXc9D4QHAcNfJdeApprilRqyiguflrD6ymTn7zkbILJs9 PRUtq+/vx8mjWa351l964hpKFgD9aojYhIMNF1KXOpoIQpylhwRMRV5ozyYDCrb28qkC 0r3A== X-Forwarded-Encrypted: i=1; AJvYcCWm5enIiRzyadpclM05KWMx9AMJ9mZf79f4fEgEw/C/pMnTgDVbcmoj9+STFsDiWDFwWlwyw1iVt22MvWpk@postgresql.org X-Gm-Message-State: AOJu0Yy3OypuKNzY4poKlciEyluVv+TDhha5Hxt9uzS+c4oX6nyVmwvJ j/Z6jHXc60Zn97HqPMawyaXaPef8gNEPt3zU7Hr+2Er4d22lR4AbJEZ0 X-Gm-Gg: AZuq6aKWSiCKMgSNO4SRNnQkIGfcRcGw8zwHSE9ivP29vUGeZiGdz6jBGSA1tjyPzWg 7oVkrzn4L/WZVi+ZT2KTI+Tl1+pfU+1yAWJvdYpJA7WlChEPHm1lUAaKZygjFdFHVfSJTc0ncGQ TgRENxP0Dz64B6cx4piTtLeHA+ktrRMwCXMTf1dTDmmnpypCls1qaX3pZbgVpA8XpIy46pVI5IJ mwPfqb4JpPSMjEmI1/as8qZzIdAFCQKuqai6o1sWFI/LPBoMeSFTXTLSeDZrhX48WzayMmdDmzP csDwy1VpLIiDEnevRVBtWAcHMiHTFC2tK1YB4AH2EYeLsrfaNnPmiFFT4zf5RpQ3GWL/dsKC29i ioLLIEjRkP4CpApZyQb/BHel+RqtaGIDENDlxEjXmWbCNnjWpE3IswLnAEL1rcVBTMeK3Rnk7Y5 BrDtkuWpt7TUTPau6Htuw0X6PfGw5KSggjqrKMwQz+aN9E140Qd5GTbMZcGYrRdkLpSK0gPcxAs w3ogRbdJhksedPTX8m01BrOEfg= X-Received: by 2002:a05:6808:4fe6:b0:45f:1840:11f2 with SMTP id 5614622812f47-463b05eb2femr7076495b6e.22.1771367395946; Tue, 17 Feb 2026 14:29:55 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7d4a76e1e59sm16213157a34.17.2026.02.17.14.29.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Feb 2026 14:29:55 -0800 (PST) Date: Tue, 17 Feb 2026 16:29:53 -0600 From: Nathan Bossart To: Manni Wood Cc: Nazir Bilal Yavuz , 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 Mon, Feb 16, 2026 at 11:01:21PM -0600, Manni Wood wrote: > Here are the results on my x86 tower and my arm raspberry pi 5: > > x86 NARROW master copy from > TXT : 2477.022500 ms > CSV : 2825.095500 ms > TXT with 1/3 escapes: 2620.575000 ms > CSV with 1/3 quotes: 3249.058750 ms > > x86 NARROW v70001 copy from > TXT : 2475.659000 ms 0.055046% improvement > CSV : 2421.976750 ms 14.269208% improvement > TXT with 1/3 escapes: 2660.953750 ms -1.540836% regression > CSV with 1/3 quotes: 3255.546750 ms -0.199689% regression > > x86 NARROW v70002 copy from > TXT : 2481.372250 ms -0.175604% regression > CSV : 2437.541250 ms 13.718271% improvement > TXT with 1/3 escapes: 2646.300000 ms -0.981655% regression > CSV with 1/3 quotes: 3202.014500 ms 1.447935% improvement > > > arm NARROW master copy from > TXT : 2294.270500 ms > CSV : 2085.839000 ms > TXT with 1/3 escapes: 2467.966000 ms > CSV with 1/3 quotes: 2485.533000 ms > > arm NARROW v70001 copy from > TXT : 1982.497500 ms 13.589200% improvement > CSV : 2005.829500 ms 3.835843% improvement > TXT with 1/3 escapes: 2111.778250 ms 14.432442% improvement > CSV with 1/3 quotes: 2441.370000 ms 1.776802% improvement > > arm NARROW v70002 copy from > TXT : 1975.982250 ms 13.873179% improvement > CSV : 2022.744000 ms 3.024922% improvement > TXT with 1/3 escapes: 2080.273000 ms 15.709009% improvement > CSV with 1/3 quotes: 2476.819000 ms 0.350589% improvement Thanks. I don't see anything too terribly concerning here, but we should still plan to redo these tests once the patch is ready for commit. -- nathan