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 1vvFoj-00AcLF-0A for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Feb 2026 14:24:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vvFog-006ZmL-2Q for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Feb 2026 14:24:42 +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 1vvFog-006ZmB-1U for pgsql-hackers@lists.postgresql.org; Wed, 25 Feb 2026 14:24:42 +0000 Received: from mail-dy1-x132d.google.com ([2607:f8b0:4864:20::132d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vvFod-0000000187t-0hzl for pgsql-hackers@postgresql.org; Wed, 25 Feb 2026 14:24:41 +0000 Received: by mail-dy1-x132d.google.com with SMTP id 5a478bee46e88-2b4520f6b32so8322424eec.0 for ; Wed, 25 Feb 2026 06:24:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772029479; cv=none; d=google.com; s=arc-20240605; b=NwBZbu7hU0v61L3cH9EAcpZe3GtIaIDQ+jreUoPIFNmu3W9eqOAuAexrDu2AbVWKtM Ik0LmzBwp++GXIPPaQXCB7heEMxKsWGBIq3ofhS42gHKlFU5rkfzX4H72Uw0ZvtlpqH9 zevy0F0c0F9xM789xtyyM/cyV+d9jISAmP9Uf8+QMfemQyb3Sk+dnnMT+q3MGP+TaGP8 gypnGG9oQbn5OdQ7d+q8Dio4wXBQ5SFDggKQVbKBXaUpFWHN7QXJ+DGv185/O70dcemy Aa8WHGUwqP51oRv0RL6xvt+mrFegY6+xJyB8jtzOe/G87F2x6rEwIjegUzP1zyEohZpv f0HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=WO06RO4/9DZvbiFB2P96M/XEE6nBjQXFM3IyKjK/mFc=; fh=Tzu9zaJBcJs61uG6/Pmt2EJNyAmWWi4+jI3KA1ypcAA=; b=li8rFHu5h0Pol+Z1H54pQPTzGv3vfKuVDw7bFvuFaNvehOrWEyh2EIHtfWKCRHuRaW OHKIbQg7yYO3iUSkxTILgkHpX7Zm/bdsa0WK9iDw4lOoBtj0q8ZbEGektqqlKboyoEpf Y1qfV4KVHSparrWaHX9XlsDiY5AOWsKSuilLdiWKTYA6PtGikzsOo/3creUxVbYJtkre 8Fz3FnqGzQmeHGEjEtZN8yKH3qBuW6AFLMqesYfurN5tHsU5wG6ERGfGiRzNdQd+XxlU Hvwh4appPwe/XxXJ/AjR1ylEnGlPKJliKVymFWjGo0rPtPoTgpgPjp/YLeuPUU6yg5U4 SNmw==; 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=1772029479; x=1772634279; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WO06RO4/9DZvbiFB2P96M/XEE6nBjQXFM3IyKjK/mFc=; b=fGhbuqYJnZ8K9gSb7r6bVJt5J4S1s169NL7oFpIPoEp6r7rA7OrQ1DgiCiK5Vebcqb pBMkFo3D2Wv7hZa+8xXMCHHlpHmtZkzJ2/HIDLE3W63p72xy42jq2SgNpirgQ3yTEdub xggpywvAikixb6HoMN87KkDjqvAkQP9PhFON0RPgv6EZZjaiWqYlwUKqSiU81CXOzAhF fyQbN4WwLQq0htIy75rcEvecI2RX5uQrnfwP8quQNFpBYHIv3na9pN6qaly/lf3GKTDy A02MwSGGnoSriISl8/7Bui2qZATcn7xuL0etVT80cIuZ0rdZ3ZOygO42Pv/2BT2fnUuE 4tpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772029479; x=1772634279; h=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=WO06RO4/9DZvbiFB2P96M/XEE6nBjQXFM3IyKjK/mFc=; b=I0ha0gl2sC6PcGOLOE/1G+GgvPvEeIfBIIm8OgtU2wMsj+zf6myKusqC18e7nCQbgx WM6pTMmRfAum9Z671/9mV5hWb4P3QmL5g+HCejHtHbaZzpCdiy7DyrBN1qBFpxusffh6 d+yha/5pF6Ty+Z5kvlzN0e+xpI/MO5mwBlK4NVxnck5wZteSyBoMPQrkV/XrQcHqv0bB 30VLYiliqcY2RTlD9hEp4+k+IjgOWfWflCS9xIB/ACBt4u1SakAyhusRGujFnGWfWMFK vNVbuOuWJZQUsakMJHiDkWPCPC/chsqBEgurLFxhOnCsj1r8eIwAat9Cc5eRmbky+KIh 4fhw== X-Forwarded-Encrypted: i=1; AJvYcCXjsOz5lKlywe+/8so6NYi74s9JIV83QPqRHLcg4xbKWfbh0Xs6iZAppoRys+b9kqkEj6lRI9uL+8bhHGQN@postgresql.org X-Gm-Message-State: AOJu0Yy4r46qyJ0euuKf00+obkUFK/ZqkU2+996ewusXdFJPq7Sf0xfU eISJ8nOcrJJ2QWqwfudDaz1Vz9ZvmYlc61irIo+nPwLOdOIvbgQ+BV1jEJkErHKAsdDCT3iI0YH dsu30gcFFBzAZa034qc7hXm7Y5EoRM+o= X-Gm-Gg: ATEYQzxs+MuEvALGacpWZpPy7y128Tz3+nq6U4iT46DFRIW1m/LyXqOIvWp1LXXQJID Ivudxe5VC0GF4I3cB0YRLQwOAHmQDA4JIS4pJgcTdaoTYCEq7eilND72H2G9zYMFPrUtir47Xph Xel3yWU6pxxVI4AxyZZDTOqKWzWr6mMIqgPLixEgRbVVUGOleXR51shpxOc+Bvhw83vU1XkuYQr lEFtxHg9tIdsLpoCqzZm9nGc59+CcDbYo/c8e6qymaCAwXtBtDl5OdNGaOGPV7RozVGKkmtgtA5 ll/3mHI= X-Received: by 2002:a05:7300:8c07:b0:2b7:f145:a9c with SMTP id 5a478bee46e88-2bd7bd4f31amr6042138eec.34.1772029479070; Wed, 25 Feb 2026 06:24:39 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Nazir Bilal Yavuz Date: Wed, 25 Feb 2026 17:24:27 +0300 X-Gm-Features: AaiRm53cRo6_LeSsrzB-kXwAlaWaZ2J-fVCBXHF5B8s8O6mPCfSx286RJLTT5s4 Message-ID: Subject: Re: Speed up COPY FROM text/CSV parsing using SIMD To: Nathan Bossart Cc: Manni Wood , KAZAR Ayoub , Neil Conway , Andrew Dunstan , Shinya Kato , PostgreSQL-development Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Tue, 24 Feb 2026 at 20:48, Nathan Bossart wrote: > > 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... I agree with you. However, unfortunately, I see regression on master + v10 compared to REL_18_3 (62d6c7d3df6). Thank you Kazar and Manni for benchmarks in [1] and [2]! I am still able to reproduce regression for the 'wide & CSV 1/3' case [3] by using Manni's benchmark script. I constantly see ~%5 regression, I am just curious if I am doing something wrong. I am a bit surprised because I didn't see this regression before, also Kazar and Manni don't see any regression in their [1] and [2] benchmarks. I am still investigating this regression. Hopefully, I will come back with more information soon. If anyone has any suggestions/ideas, please let me know! [1] https://postgr.es/m/CA%2BK2RukFH57QPAfTEzvy7PEyrLzav3HkyCiu-2yqR%2BuW_Niorw%40mail.gmail.com [2] https://postgr.es/m/CAKWEB6oT5KbyF%2BuRRhjjJi7p2PmRdOzxp3T6vFcN04BCR-%3DB2w%40mail.gmail.com [3] 1: current master without dc592a4155: 14400ms 2: current master: 13960ms (%3 improvement against #1) 3: current master + v10: 15123ms (%5 regression against #1 and %8 regression against #2) -- Regards, Nazir Bilal Yavuz Microsoft