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 1sWyts-000our-Sc for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jul 2024 13:52: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 1sWytr-00FM8A-7C for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jul 2024 13:52: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 1sWytq-00FM80-Lc for pgsql-hackers@lists.postgresql.org; Thu, 25 Jul 2024 13:52:54 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sWytn-001NfI-Ht for pgsql-hackers@lists.postgresql.org; Thu, 25 Jul 2024 13:52:53 +0000 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-52f04c1e58eso315898e87.3 for ; Thu, 25 Jul 2024 06:52:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1721915569; x=1722520369; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=iC87yB8XmDO5yED/FrOct5AfvdZybUb5D/jB5nVjAdY=; b=USLoWpiFkC0Eby00rvHkthmHYi/Fc6d7P3UmgQsdCWzIFxf9PjUjkBMAWLdgqiHUay GECEq81x04wOFebQfI275rfTFDEGVJYMrg7e1dOps05eTfemQ14DVObfipR5tAiKFZrP YBeCrWNW/0U2lwnT/PY3hbQ3zqnavK82si0F1Pga/yBO13OsczL8qQiKvHIJ1UwSFBh/ 9iuz8lOdOKYdZJq4RIMtL9cINReD7gus7EY2OU1YqkgmvAadqb5FkFXzlbgowJs1hOS9 0UC3g2i7LGq1SOneRB/b9VtIWqWjizOREIskM5TDTuRBT0Rm4asO3Dt0QDecGvF5wfIC VLHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721915569; x=1722520369; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=iC87yB8XmDO5yED/FrOct5AfvdZybUb5D/jB5nVjAdY=; b=lYoirmzAxWvDTdaVdLSMEu1hJwqpPRGCltNRBNJuyGO4XwS33GfOMSijMd4yGCfEbV f1gq14Hv6ozvkRO8Q5gmf35/q+IR6H9F3U56P9t+n+WCyPaSHexcFKRypcMoKET5Yfsk eFG3wNmqo9q7sx7i/81XN0KSQjA+s0DoELEV5nhULVl5clQapU8/hYF3tRNHTQyaInOe 9iPk/pDyG+a+wvLDl1/u2vGsV5in5l4aFTbjz5QiWjjkdiJ4T/xMwFvuyK20HVlLSnK0 Wvs6CNPGr9JgtBWz/TaOXTSpORBclhIUcmfjLurGlhP3rlRBrSEE5qQm6b1hn2Caczho OeaA== X-Forwarded-Encrypted: i=1; AJvYcCU9KHXkF/WDWFppWx1YVkVv43j7Bz/uqnasPDDqUq1LfEmkvfsGxR9tvennuPqxPAiyyVDxVpHKSab+02WiJPuO0E8K8b/HzGIbLcmy1fVlJ311 X-Gm-Message-State: AOJu0YxSmnWVDvTbo96VxFwx1aLhQdUxPj9OaHX2Ad8DHQuCV6FyxIyb VRBjlOSOu9S+rx2/7QLWpnN+zfFIHP8NDDjf7sUY4j2idHNxNKGqdDRipb5zq8o= X-Google-Smtp-Source: AGHT+IGDgsO6O/JcrSDWEfETBXJy2L+Nl+p5bFH/UZiuxPcY8XVj1Tc/v6dG2GDRrwBNF8yzp72D8g== X-Received: by 2002:a2e:8896:0:b0:2ef:26f2:d3ec with SMTP id 38308e7fff4ca-2f03db633f5mr17726381fa.12.1721915569231; Thu, 25 Jul 2024 06:52:49 -0700 (PDT) Received: from [10.1.138.108] ([88.116.133.170]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acab236adsm76556566b.17.2024.07.25.06.52.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 06:52:48 -0700 (PDT) Message-ID: <3b662dc5b615d4c20a55e8e2fbe6fc00fe00609d.camel@cybertec.at> Subject: Re: proposal: schema variables From: Laurenz Albe To: Pavel Stehule Cc: Erik Rijkers , Michael Paquier , Zhihong Yu , Amit Kapila , DUVAL REMI , PostgreSQL Hackers Date: Thu, 25 Jul 2024 15:52:47 +0200 In-Reply-To: References: <20200924035637.GF28585@paquier.xyz> <20201001033824.GC8130@paquier.xyz> <51a9a68e8a998d04df17417d45c1dbd4@xs4all.nl> <89817942c99da01cd5e7850fe418436b@xs4all.nl> <56ca532c37eb0b540961f74a7bd5db39@xs4all.nl> <8181bd3abc647bdae5a4f78e71e62478a98c75f4.camel@cybertec.at> <9e67d49deb18270eddb95e602c83f02b98459843.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3 (3.52.3-1.fc40) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thanks for the updated patch set. I found a problem in 0019-transactional-variables.patch: --- a/doc/src/sgml/catalogs.sgml +++ b/doc/src/sgml/catalogs.sgml @@ -9851,6 +9851,17 @@ SCRAM-SHA-256$<iteration count>:&l =20 + + varistransact + boolean + + + True, when the variable is "transactional". In case of transaction + rollback, transactional variables are reset to their content at the + transaction start. The default value is false. + + That's messed up; it should be varistransact boolean True, when the variable is transactional. In the case of a transaction rollback, transactional variables are reset to the value they had when the transaction started. The default value is false. I have started reading through the first patch, and so far I have only foun= d language problems. I wonder how I should go about this. At first, I intended to send an edite= d version of the first patch, but as later patches depend on earlier patches, that would mess up the patch set. I can send my suggested modifications in text, but then you have to copy an= d paste them all, which is cumbersome. What would be best for you? Thinking further, I wondered about the order of patches. If some committer eventually takes mercy on this patch set, I expect that only a part of the functionality will go in as a first step. Does the order of the patches in the patch set match such a process? I'd guess that temporary session variables or ON TRANSACTION END RESET would be things that can be committed later on, but PL/pgSQL support should be in the first commit. What is your approach to that? Yours, Laurenz Albe