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 1tYqRt-00Fpcq-1j for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jan 2025 17:48:01 +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 1tYqRq-0038Dx-Eu for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jan 2025 17:47:58 +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 <9erthalion6@gmail.com>) id 1tYqRq-0038Dp-3i for pgsql-hackers@lists.postgresql.org; Fri, 17 Jan 2025 17:47:58 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from <9erthalion6@gmail.com>) id 1tYqRn-0003cb-29 for pgsql-hackers@lists.postgresql.org; Fri, 17 Jan 2025 17:47:58 +0000 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-aaf0f1adef8so489987966b.3 for ; Fri, 17 Jan 2025 09:47:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737136074; x=1737740874; 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=GYzgz4vcwYPdksEIw4AupWgPqe5+cbpUPuH06bai7Yc=; b=VVHtJokXBOlCjnn7AOnIPu+vBZJOr6hGYtzZ1038vsFusFVqNnDdmYpyp1ZOqe7lzf sxQuMxHiUEwOwlGZykKQGhFCtNnWqfCjqTTjNRqa5ZFbXbn4r6UMkVMRnrmCD5ZOkjp9 TwA9EsWsypzCfZ4cefIkeuUiW4ctB0lddEO2qeLub/R7rHJCUMSnu/boK4rqVdiJ+KbZ d7gbEE5tAESWmsIrdglJcFlU9/w2v3VFXPy/dQa5uSTzMU0/pLx4OuUliOUeDtecJN8f aRn2KRm+6OQO8Ci1wBXzAoWIrQYDdLfCeXnmRSUfO7tZOzeDxFDhcDDK03t2+apD5MFx o3bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737136074; x=1737740874; 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=GYzgz4vcwYPdksEIw4AupWgPqe5+cbpUPuH06bai7Yc=; b=C3LBzGwQE5pN9uRl8QM0i0N4k6KLnNT/s6pguh68Sl4CEP0IGV3Bj0nI5nhbxLPH7x 3EnIy8iznhsjfeHMVNtiUvVC8gGfJJTaUc+rBCTqEmMVf268vEvMkN1xfhDfwWgb8xab /4evt3GRLmc2rm8WBoIEv+H7BihU2fCPHAjxS+ZDD3Ykk7KbgKf0ZPC6neZmqdLctIHQ QUMdLkRnScvJtkgm72aimqRUcuHLGXUYIepXU20A9bm8Ys+dP+hA6OcmGFzgmCJrxOqz 01GKH68R5ancySE0//XWxFazo0wMitP7WAzFqybs4Sr1sNii34XamqZtysHGRnXcROML iYxg== X-Forwarded-Encrypted: i=1; AJvYcCXhRaGmLE3UnYbd5DxCr/HL5euFfY5bqLq1/tR5Cpo/cuUfAISffGNJryE92W5vFOHr1zaOegR3xRn/Xwbn@lists.postgresql.org X-Gm-Message-State: AOJu0YwsGOZIG/FTNywm66k5MBaqcsH3aLGH9zEmNpb3YLa2GZJc7nyK RFK9+5wNjhJXYU1iLghrhDKdIdYp53GQ9zJ+SWnaM2npmn8ARfDL X-Gm-Gg: ASbGnctZtK1SmVNDKTcIucrPQxiDZWG0vN3dk1OPHccP9hH3m04n8MFPaa7n5sBInvZ 57JNf68GOdkg5uy2RFuRH76OIcKUDHYS4TRoY24zL9FNIhabuNqFedOhnwohAPdEq4LvKHpdhma EUzaxZOq3woub3pz+ZDMvAVa4kSxuaz2DwKY+RQP8piqeE3ePkce1VoJA/mfxOojVQ476VSvkMY JKmQ8g46xLitVvafMFRx7xLtqN/zfse1otyyEJ5RYlyUPG8+NT4UBCpsqm1SF0Tu3Kj3++X7SrE FtDN3rt8g/+mbirX2fHb0Nr5i3rXTgzkpjP8zA0E1N2CLrvACgeqXYKcNa+wx1ZiqKO+cg== X-Google-Smtp-Source: AGHT+IGmZXFLVTRPLtgfZb3G9Q69wCsceK+ZtJox6OZp1T3ld4DtXiSCoP9Y7/myhvjtOg9qTAzp1g== X-Received: by 2002:a17:907:7b8b:b0:aa6:995d:9ef1 with SMTP id a640c23a62f3a-ab38b0b9960mr325662766b.12.1737136074237; Fri, 17 Jan 2025 09:47:54 -0800 (PST) Received: from ddolgov-thinkpadt14sgen1.rmtde.csb (dslb-178-005-239-240.178.005.pools.vodafone-ip.de. [178.5.239.240]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab384c74cd8sm205314466b.3.2025.01.17.09.47.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jan 2025 09:47:53 -0800 (PST) Date: Fri, 17 Jan 2025 18:47:52 +0100 From: Dmitry Dolgov <9erthalion6@gmail.com> 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 GMT, 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? +1 into the bucket "want committed" from me as well. Throughout the review process I've stumbled upon a few cases in my own projects, where it would be useful.