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 1vs0kI-000NIJ-38 for pgsql-performance@arkaria.postgresql.org; Mon, 16 Feb 2026 15:42:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vs0kG-003JTC-2G for pgsql-performance@arkaria.postgresql.org; Mon, 16 Feb 2026 15:42:44 +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 1vs0kG-003JT1-1I for pgsql-performance@lists.postgresql.org; Mon, 16 Feb 2026 15:42:44 +0000 Received: from mail-yw1-x112e.google.com ([2607:f8b0:4864:20::112e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vs0kD-00000000uYi-2XuW for pgsql-performance@postgresql.org; Mon, 16 Feb 2026 15:42:43 +0000 Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-79495b1aaa7so30303987b3.1 for ; Mon, 16 Feb 2026 07:42:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joeconway.com; s=google; t=1771256562; x=1771861362; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=y5diCoNDpkTgLtVHn11zNb33wGxYQ2mXb0XdrxTs7BU=; b=G689BZatUIIIGMvzGomMPJTY1y+qS/vYvMa5Z9pLX0PMf9qwwInWx1VHingoOzr835 UKOsA9hnvbDT7DXMzzOYPuAeNugVSBXA8+Vt9kXhrxhEimtt0PFY73woNKnnz+O8F32X Kj3V7vVVa8vCK7p35p8Xo/BS18pARU24Aj8HIaD9wUsW7LzzT0i61lRsHo5FJD2z4C1f C/QsFbMV7ufOMN47rXLSUOG4jPftbgd6eg26+FIaZ3bY3UdafsmRR7rJLjNfj8NSdxVR Yly545ZU3mYuJ6V1sGxOol9dHulh1w5P+E62Z50ss1EQ7m6fQGo1I+YO0821e1D0ZA3M DqQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771256562; x=1771861362; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=y5diCoNDpkTgLtVHn11zNb33wGxYQ2mXb0XdrxTs7BU=; b=tXn6ImG3h5MCipJ6OoZlxpaZK7wsgaDbmU7Rmq1Nbz5OQlGT0DiZ2DqF7d5PsASoel Ud5pWIMx6a4BpkxTks1W0WrZ4SwkzZ14u9/5qFxH2d3V3JvSSEtNjhXdxx/8nwpc9h79 PiLKMROWCkmkdG5IIOeMZW+b/IczhRRRfH+m0ARsvOZRDzrtTTyzwAxEeBT0U/+7UXLC yW+uhnI6KIPbAfhZTaoZcawx52fvosbhXWvp+pw98sTRAaVnUWOi6ABQ6prx2eNJGYZh EBpjeVdodvMPpaJl43tXUAQ6HnTtmLBDe/TOTzqSI3IzbEkNi9/JTiNwKmQeZBdev0UM 1yFg== X-Forwarded-Encrypted: i=1; AJvYcCVj0eEsqrZPhvSxcIftgEqqRAlRad/oEitF7PeVPZSLqV4HZrhPM8lFGkr0Mc1c0GtYmn6w3g7tAkxOGk3zYZgeoA==@postgresql.org X-Gm-Message-State: AOJu0Yy9LnurcWcN51ZeYsDSBrmIwmyDaLdRsG+Tws9GCl+WYBWhm3yA +o9KOq7B4fD3mO68z+4hldc6zn7+hJqujEe8wUkjtCQEmSKVMSh14hlDJEILGEanPDy1S5FSrhB JQ4hSMEc= X-Gm-Gg: AZuq6aLccqnk3DF3nmgzuxz1k0LL+Zao7pYnzFOJmRsK6dWEF1x+4goh0BoypdlE1zr eA+QxbY7Fii7nCfcp3+74ciG8slBBK6l/b/z8TPo42cZDgYE5PbyVCv/Ym8wVDnnBX0mhbtlxU/ qcifUPiG0zs+O0KOK/EbF7A2Aw1wyVq8iwtfBD1yebEJxacgA/bgk+KgBkjEjvo+vBkIuw32m0V s41g0IJ5xmucOtPHmthVN+OXSqVcwTPEvxh4ED7v6hFE71TZHQjaDILCvijIcJb0RkfcGule9KH FFxQlu7O4vxE3Q3bvJHHxsbjpWZ99f/PoNmJHGi3/69lsehGm8Igx5bVd/cHlUTzdTQjYNZ1mHt +4/i6rfWRxZTHAxO1If8mDHO37Uvnc+hHQnvVK/lyOYDZoncXKzqb1OBgPj4+a5a4RUaKobwF/e 3A1sD4/ieO8UmopzaH3G0F2tE= X-Received: by 2002:a05:690c:b:b0:794:ff4d:9201 with SMTP id 00721157ae682-7979e899694mr100808827b3.35.1771256561553; Mon, 16 Feb 2026 07:42:41 -0800 (PST) Received: from [192.168.4.42] ([46.110.138.68]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7966c267e14sm98967447b3.51.2026.02.16.07.42.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Feb 2026 07:42:40 -0800 (PST) Message-ID: Date: Mon, 16 Feb 2026 10:42:40 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: A serious change in performance between PG 15 and PG 16, 17, 18. To: Clive Boughton , pgsql-performance@postgresql.org References: <5A68A5FD-3CD2-4863-B274-51804235BE3C@softimp.com.au> Content-Language: en-US From: Joe Conway In-Reply-To: <5A68A5FD-3CD2-4863-B274-51804235BE3C@softimp.com.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2/15/26 22:49, Clive Boughton wrote: > After adding quite basic indexing, that time was reduced to 1 or 2 > minutes. PG 10.2 remained in place until 2023 when the DB was > upgraded to PG 15.2 with no problems. In fact performance increased. > When I recently upgraded to PG 18.1 (without any changes to the DB > functions or tables, or indexing) it took 7-10 hours to produce the same > result - a *300-600 times decrease in performance*. > My first step was to reduce the jump in versioning of PG from 15 to 18 > down to 15 - 16.  This action produced the same very poor performance > result as when using PG 18.1 Are some of your indexes on collatable columns? If so, what version of glibc is on each of your systems (i.e. did you change OS major versions)? -- Joe Conway PostgreSQL Contributors Team Amazon Web Services: https://aws.amazon.com