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 1tYovu-00Fa8o-N4 for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jan 2025 16:10:55 +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 1tYovt-001TwO-CI for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jan 2025 16:10:53 +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 1tYovt-001Tvz-2I for pgsql-hackers@lists.postgresql.org; Fri, 17 Jan 2025 16:10:53 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tYovr-00032U-0L for pgsql-hackers@lists.postgresql.org; Fri, 17 Jan 2025 16:10:52 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4361e89b6daso15591525e9.3 for ; Fri, 17 Jan 2025 08:10:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737130249; x=1737735049; darn=lists.postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=kEO8z9jE0yggTSJQC1nwv58w2nUFoRE2AxZNBKMdJaE=; b=ll1apzaNvFIIf5UbbVVLRE8HMKM1jkjaHYiOYmD3dgA7Sox3KmCihN7G2rimayS0Ol A+AaIMliRLF3CGw/BmH9TXvgJx5HkyPCDktE10u+KlBJJGIlIVcNndv87EBCsx4f4M4K WKYOLv9uUDJkTWxNwOjrk1Y1tSkgAb4dIGZK2S6UEFomuDMPhKGBRhx718uMyVIo4QwW QtwwcZTSf1RWqGJQkRkiUzN6yz2Sxv7KOJcICkacrouZ6uPPUll36uchjXtH1Sh0yf5h EgCqW8wuQE98iEFbjeCh17UKVquGBl0Pz4lg8f0qwZmV8/fkyWVi4SPQ0Qr/HH58TwON 1nKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737130249; x=1737735049; h=in-reply-to:content-transfer-encoding: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=kEO8z9jE0yggTSJQC1nwv58w2nUFoRE2AxZNBKMdJaE=; b=kq7sSdLFlZFGOKlRsgm61YbaivfRyIUeHaYEG2beVLE5omiWUt8Z2y7DdrbkOpzEYj hHWsZraCi4mdQwj0yZHfVZER8XHMx+MukBFNiLSF8fD+03qkXbqtLxz+cRZ7Y+f0VNMC FTmhsY1y/RyGEu3cRILk4PKrs/5Z7+faDuXwIA3sKbRKUQlsa4XZHDrOZQ/EMhDb4iRp 4mvkXjH165SGoGLRYpvbK5buUABDHfwz0n7BFwzuIw0J5dyV/xIrbhMC7rSB2NJeTYtJ epahRi/7BP8apyDGez3waCeosIS5FyGyPTv87KLsVRHclnc2UAKLyM6YzdF8/D8zxzad CMIg== X-Forwarded-Encrypted: i=1; AJvYcCX0+yxFkAU+xBdOYGVrQTX/FbEbAkY+koZgoHUisuFjBXa4apGqg2b9yzFx/L9LjQ0ewo/5QgPJ6ZiRDMbC@lists.postgresql.org X-Gm-Message-State: AOJu0YxunWM8HKok3K73Jwns4Wm1FDVbTxAWfq/Bxw/Dd0X7XLq/ZnKn l5d8rDAesdF2J+5LT6JjNr2Qp4WGmjiziwLMoS7oLSJUFFCzMJa+ X-Gm-Gg: ASbGnct5b46ah95HYBmXDnN99p2gg6nOPZfjb4U4JICa5HUKlVk8YHEbH2V0ka1ateF OY1B4erly2HgNVL8R8URohn8iBw/1g4UKmgqxsDIZJCkbfY16EwzudGqXQAAKlb3dilIxaCmCYx SfnWRgEauJ6P9oCYR3ufM2ECmHXWWEtlY27V/9l0rsfUNANcdnDZhyu6tXj0xrEXpaNiCiOC4K3 tOWS/7cdjnUT2rI58elYN1JgwQJWIJnU8iZ4U68nepRQuTG X-Google-Smtp-Source: AGHT+IFvcBB1KheOS4nwtpo/+FrYRFy+Y0fcPnt/yMRHJGYtySjOS4nrI5f2GWkOEpqS8rbyruoxCQ== X-Received: by 2002:a5d:6d0c:0:b0:385:efc7:9348 with SMTP id ffacd0b85a97d-38bf564d5d1mr2551208f8f.1.1737130248925; Fri, 17 Jan 2025 08:10:48 -0800 (PST) Received: from jrouhaud ([2a01:e0a:c:bcf0:7aec:e54:d98c:f301]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-437c7527fc4sm97868835e9.27.2025.01.17.08.10.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jan 2025 08:10:48 -0800 (PST) Date: Sat, 18 Jan 2025 00:10:47 +0800 From: Julien Rouhaud To: Bruce Momjian Cc: Pavel Stehule , PostgreSQL Hackers Subject: Re: Fwd: Re: proposal: schema variables Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Jan 17, 2025 at 11:01:41AM -0500, Bruce Momjian wrote: > On Fri, Jan 17, 2025 at 04:55:07PM +0100, Pavel Stehule wrote: > > pá 17. 1. 2025 v 16:35 odesílatel Bruce Momjian napsal: > > > > So this feature would be like global GUC variables, with permission > > control? > > > > + types and domain type check - holds data in binary form - there are not > > conversions binary, text > > + it is declared - so less space for misuse is there. Custom GUC are absolutely > > tolerant > > + it is a fully database object, only owner can alter it,  and event triggers > > are supported, sinval > > + possibility to set mutability, default value > > Okay, good summary. Now, can people give feedback that they would want > this committed to PostgreSQL? I unsurprisingly would really like to see it committed, for all the reasons Pavel mentioned. It would have helped me on various projects many times.