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.94.2) (envelope-from ) id 1uhCEv-00BbZv-KA for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Jul 2025 19:13:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uhCEu-00C9Jn-AS for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Jul 2025 19:13:24 +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.94.2) (envelope-from ) id 1uhCEt-00C9Je-Vo for pgsql-bugs@lists.postgresql.org; Wed, 30 Jul 2025 19:13:24 +0000 Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uhCEq-001ilR-25 for pgsql-bugs@lists.postgresql.org; Wed, 30 Jul 2025 19:13:23 +0000 Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-73e5792cb9dso60054a34.2 for ; Wed, 30 Jul 2025 12:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753902799; x=1754507599; darn=lists.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=V5fCr/OapxXa8Jvx+z6VNOQ86HVvBHBbkctlN5OTkj0=; b=P0SliRhk0GQcrvpCCfiNEaXSky0aEP8IAxZs1kGjp6JDSsYHvGGzk9xurCv+ZD6Pwu CxDf8V0n5lmj3sXpYskof9dWv8jNBglcG/zLW2AGIxPH3euc4ug8FLp7yIDUrM6loUn9 5wTs81e45WMfM+7Ikw2gaQ9LI7I6r/CKbzJjQ2WCbzQGJ9K5xpRs9uja3YiUzY94tfVm U0Ct9NXQzTsyBIEzevd35u4qXFUwapMC8Dx174eCtm1uQZCfs3+FQIeKyXi/zYl3gh0d kRAbsn8PuSUZHBR5LVAmju+XzyiQwC7ktz4pgvbz4tjobUD8ZCQqXWv4d4NQ2nEdlpeQ W4nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753902799; x=1754507599; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=V5fCr/OapxXa8Jvx+z6VNOQ86HVvBHBbkctlN5OTkj0=; b=cLVdyf61fz1rNSxULm/gJxbkHubLcQ0LDKDUMGQJYqV0Y6q1GErePxaQ1n60K1wNOO XN+A3JiA6SJpkpRkY+Rv3s+DuZuAP87c5DPoe9qs0fjr4OKreASrZicrO5rJdQXMFnRl BXBjDJIvoATP7GUTkyV1IlvITXkHdVZ6/bhHeiNPYMsSwift0oRKX4TEnQ6KVaOJl2mK wI7UH7b9Rrz4ptydfL0Qsd3Ik1Zclktt4nE+la0/IK8kBANdvb24PBnIzSzPhV5AbEig YqywLVYLNWSsCuBvsAge9Lsq7Z7AGTu/2KvuK4gsV7Kxj3AgoCfHKYQz/NpEOForAww2 hRpQ== X-Forwarded-Encrypted: i=1; AJvYcCWfD3Y/ZyuZKMU9bq1vDLR2FWyq57EO66iPhH3t2Afsh6PTTduhk8YeSyUK61V1WBXp9nj7kVv+jylt@lists.postgresql.org X-Gm-Message-State: AOJu0Yx8Kna+6TKuZOVJgK5Yt5K2NL4sQ/jzFNSy7PeEqX82AdnpWSWe GL/7+SXoOGOmPOkCYCakaCQDsH+RBEO5aJj+HrHLG38m6C60kOHWEaHWqkuxEA== X-Gm-Gg: ASbGncsKL6RRzCpBoXYtPM2GcJXNh2BKxjrjuECEqa8LYUej7XVlGZUlSturIIj2NG/ S1Laq3fcace9tN3DLQV6vft6d7I+mjeENR14zh8WrpJ+/6C4uLYxtZXXtqZYqmN17dCbnrXmNOd uMj8yNrfW0eMJyR6EIk0lzhbGcrI4DztrvP06Bi+OwdNlWnshbzJrdXrakNoqRoA2Bd7XXs9Kra 6GXuCMA7S+e6b9sjn582PLYGadPWgh/z1U+FVeHilq0tgyWabhRX9/wwKCf3GqajtECXYXX/kSk W6xI28jr7WvFlImlO5Qa75G1QHqJlWzoUmfP7oU1kfmJSn/dVc0XlMzctg1YeHKOCU87Rqz7nwB Q5GGeAjjE7cF7Uxr93PWLitLnoXRNdYDVzRBaJYlTWNk9nbAF1Dem51A0b+quVD/dyUnC21VkGp M/XOttGYAgPvzY X-Google-Smtp-Source: AGHT+IGS/saMZ6PhX3B4LikU0BqqD4ndo8EJcqs3+KR+aGWT03TwPi+D+k8/dztt/CMiNHb31xInkA== X-Received: by 2002:a05:6830:3917:b0:73e:a0fd:ac80 with SMTP id 46e09a7af769-74177b0243bmr3666007a34.9.1753902799234; Wed, 30 Jul 2025 12:13:19 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-508c934372esm3441710173.63.2025.07.30.12.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jul 2025 12:13:18 -0700 (PDT) Date: Wed, 30 Jul 2025 14:13:16 -0500 From: Nathan Bossart To: Tom Lane Cc: Laurenz Albe , mert@futo.org, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18964: `ALTER DATABASE ... RESET ...` fails to reset extension parameters that no longer exist Message-ID: References: <2474668.1750451081@sss.pgh.pa.us> <803ddef427b9016be04af9320925e9570d3fcc06.camel@cybertec.at> <8902b6f8d5c19f09f4a052295b9de41d9f6970b5.camel@cybertec.at> <768341.1753738070@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8aGg9uhxC6bwte3D" Content-Disposition: inline In-Reply-To: <768341.1753738070@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --8aGg9uhxC6bwte3D Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jul 28, 2025 at 05:27:50PM -0400, Tom Lane wrote: > Nathan Bossart writes: >> I looked into how easily this back-patched to v15 (where commit 88103567c >> was added), and I noticed that the ALTER SYSTEM code looks a bit different >> on v15 and v16. Furthermore, I didn't see a simple way to fix it on those >> versions without first back-patching commit 2d870b4. From the commit >> message, it looks like Tom didn't back-patch it at the time due to a lack >> of complaints. I'm currently thinking we should first back-patch that one >> to at least v15, if not all supported versions, before applying my proposed >> patch. Thoughts? > > No objection here. Now that that's a couple years old, it should have > had enough time to bake. It applies relatively cleanly down to v15. The only thing I had to change was to replace guc_free() with free() on v15. I was a little worried about changing the signature of check_GUC_name_for_parameter_acl(), but codesearch.debian.net doesn't show any outside uses. -- nathan --8aGg9uhxC6bwte3D Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=v1-0001-Allow-ALTER-SYSTEM-to-set-unrecognized-custom.patch.v15