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 1ueyqO-000BWt-U9 for pgsql-bugs@arkaria.postgresql.org; Thu, 24 Jul 2025 16:30:57 +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 1ueyqN-0092k4-Lg for pgsql-bugs@arkaria.postgresql.org; Thu, 24 Jul 2025 16:30:55 +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.94.2) (envelope-from ) id 1ueyqN-0092jv-53 for pgsql-bugs@lists.postgresql.org; Thu, 24 Jul 2025 16:30:55 +0000 Received: from mail-oo1-xc29.google.com ([2607:f8b0:4864:20::c29]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ueyqL-000ZyB-1P for pgsql-bugs@lists.postgresql.org; Thu, 24 Jul 2025 16:30:54 +0000 Received: by mail-oo1-xc29.google.com with SMTP id 006d021491bc7-60bd30dd387so698598eaf.3 for ; Thu, 24 Jul 2025 09:30:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753374652; x=1753979452; 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=lqWtauE+GwyoUUM99XT+qVKZ4IgoVZe34yZwITIA04M=; b=OEZEm7JENGhW9Sn1WdIIpymgRcZf9LLz5p5fQFtCFsIE8r9nv7tBPhLvprxAxj/Iqe 0cxWCi+hB85wWdoWWxzXyXT/jOrk2O3YLAs+WQ+8JV3kdICvQPQT1vy0dTw6znpuwgpv TiojvVKZOmwgPK+mmFtBtbTzz3gIwi0PFyK7LfvpoD9aS01402S5TlBY/aQa+9heeneZ YnjHhcBNckbUx8vrntSSWxOxQA8nGNJRBEs5yCE2LM1bMwfslyTDxpjH9hgxTtB2sHs6 CdIsr9jUeHwnptVOE3JIcFVa2hLlx2ipzyrA1yxOAQ2gd+ESswyTrra2nOhFjdqMv1N5 JLyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753374652; x=1753979452; 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=lqWtauE+GwyoUUM99XT+qVKZ4IgoVZe34yZwITIA04M=; b=BoyY1iyEUVqOusDvKDdH25Ae6UD6vAI2xH6UgyOVSL7OV86aZuhI6psV6QZ/UF8IXt oDXVqrl2bUQBnovitNdwKwnL6Ud+vY2pO6mxosE2GdlmRuTckElydtEx6ewrdZV/DdSc xPTosuoStrMsqZ3zjWMG5ysfPt1aEya2vOQdNGCHg0KmmQVSOuCpOQHl/ME4Fp0FRb3H m//Tas+E9IchPFqN9LCdryJZ/UwEbRpx2xZivaDwDP2b7MsdvcJgkgoly30ZuVGiZMbG sXRcW2nHMr6IJ4CdRe5idfnx8DyKSDD/Dox5gv9IM7kUdW1TW1r/kZXl6rMStk6fWJQO rbBQ== X-Forwarded-Encrypted: i=1; AJvYcCV0IUqirowkXUCcuUzARuz9oDznZdvWNx8OqTw56+qgBgfYTy5qCsu/tlGWHQHXHe1kWdD2P5tzq/B4@lists.postgresql.org X-Gm-Message-State: AOJu0Yx55hsYOX9BgcQJcMObYUm1Jx7rEPu0egdz+jW13Fk2lqjlMg7b N5FGo5uEzTnbkTdhQcEMz18ZfRnnfq2xbvKuZTRwzZBm4f9jrWf4TrZvuNsb9w== X-Gm-Gg: ASbGncvUAodnixRmzBeN4noJzzOPBJJTR1Fz8oZ7Fz2HTILKhBsOy09lTRaBiwVCt2u aY0xgNGrChPrGnsqzMbztCc4n4fDcdSgYcuh5y1SGaqisUk/nWOZTGCUYrjj/eSu32Ps7vuHpXZ bDotI8QY8tsdPuPW0rDpWS3Ez4cdMXvAKDbmvWJqBm2yitUE3qhzDeGLu0SdL9W84Y20GA/rW8l AMOq7B2V+0jgyzj9CWf0dxHUng/cpMxOHi/knF6PeuEBE/RL5VWHzTvpwQj1QDMbMLeDL/D4W7m MATFulwzPd7qebwC4TfamugdJv1mrGlpkxLrBPVH/bM7FOB7vRPslwrpe+U7vvQ5TH21hJauIos 2fMgMNqR4QDi9Oxu9ZF3f/Usk7w6VNhdtj2nF8SQw/rOd0zlbowrIjJt15osr7Su/cQqzhCOQ0f CK9b6nMonwFrbR1Ih+sKwktzg= X-Google-Smtp-Source: AGHT+IG0wyNx+y7fOy5GJoflM1jZMLyjXTXzIh8aA5mNkkzV3cOg1mp8lSGf2kAnlEKEgPBuI7UG+Q== X-Received: by 2002:a05:6870:6110:b0:29e:27b6:bea5 with SMTP id 586e51a60fabf-306c7268d14mr4749380fac.25.1753374651629; Thu, 24 Jul 2025 09:30:51 -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-508aec10f59sm495883173.109.2025.07.24.09.30.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 09:30:50 -0700 (PDT) Date: Thu, 24 Jul 2025 11:30:49 -0500 From: Nathan Bossart To: Laurenz Albe Cc: Tom Lane , 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: <18964-ba09dea8c98fccd6@postgresql.org> <2474668.1750451081@sss.pgh.pa.us> <803ddef427b9016be04af9320925e9570d3fcc06.camel@cybertec.at> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="WnNNth7ekP1e9dZR" Content-Disposition: inline In-Reply-To: <803ddef427b9016be04af9320925e9570d3fcc06.camel@cybertec.at> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --WnNNth7ekP1e9dZR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 22, 2025 at 04:27:24AM +0200, Laurenz Albe wrote: > I tested your patch, and it works as expected for Thanks for reviewing. > There is still one piece missing in my opinion: > > ALTER SYSTEM RESET testext.swap_limit; > ERROR: invalid configuration parameter name "testext.swap_limit" > DETAIL: "testext" is a reserved prefix. > > I think that this case should work like the others. Good catch. This should be fixed in v3. > I'd like to see regression tests for this, but I am not sure how > to best devise them. > One idea would be to stick them into the regression tests of some > contrib module, even though it is not the perfect place. Added in v3. -- nathan --WnNNth7ekP1e9dZR Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=v3-0001-Allow-resetting-unknown-custom-GUCs-with-reserved.patch