Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ndePO-0000e1-VX for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Apr 2022 20:43:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ndePL-0005QD-Sj for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Apr 2022 20:43:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ndePL-0005Q4-H7 for pgsql-hackers@lists.postgresql.org; Sun, 10 Apr 2022 20:43:39 +0000 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ndePI-0002R5-Ao for pgsql-hackers@lists.postgresql.org; Sun, 10 Apr 2022 20:43:38 +0000 Received: by mail-io1-xd2d.google.com with SMTP id 9so16579297iou.5 for ; Sun, 10 Apr 2022 13:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=OQCf75SpD/RDJxTjbFzORG7hOI0bkpmXbqb6/550G9A=; b=0Q8MigMunIqtqlVTUQSpAWMJaP1JaqhJThxLJx6GRzT0PImeP84m0S5UZ9d4L1F6Yy SPCTiHBhyICkwVoP/eyTmEamgHKK64wIuV5yXe/tK9PBSIIDqP5HchYnm2AJ81e1h4cS DgTMvr2fNHvWKFPPhZKe/0aG1lkbMHCw7MKo+LqAOzqrfBCIHrkY/kYWi7gKiSIUnER6 ZPkLEYogrfGRPWA8b4eTIGHCl6bKUrWMwKjlFssgkaLEPnkCkF2pP6hwow6MN2dSrLS2 vThSFq3wfmEXvPAtuMlgSIlO7j/Uko8VfaTe5NWr9OXJ8+n6UHdgV6LynMkQ79JIXEq3 FjCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=OQCf75SpD/RDJxTjbFzORG7hOI0bkpmXbqb6/550G9A=; b=oA0aICGmdVba9D9Q6tbR/Xy6++vsIgd0ieSOtYb8UtmDvrtXAEQeoAhU3fixzy/h8A Wq7OPs/T2JYieNsBO++Nf0yDddFK2Sg3hrDqP5jO0CndhAyb8H+VrFgtmO44ELCRxDe2 iX7A9pfudNtlZtSIGXp3/p/9UGcIewGTPNqlYGjyhHt8X0Hg2Wi4a9ClEIezjwpVZeOT vRsaPCYIh/gu8n/Fh9Nk59l05kcYyC9V3BrBpfFe65uPrkGQvK1mvMBvRlhe0dCLCpXI TOi+JBXd6yFDoPQSoQSGuAxlGmY+T5vpxm/aSpHeJ39/2yBy/JLrPFcDTjcDzaw0icRz j/Zw== X-Gm-Message-State: AOAM530G2PrnsaPHiyO+4rMm+ZCwFTalMP5fJIPxnnxSH9zbPdRsVQLk U09L8jFXgEt6dF5PWywGN+qJHA== X-Google-Smtp-Source: ABdhPJzA9HJf2EeqCXYobtEc+4OJOUBSrU1dyn6GBIcUVq4XPnFLlL/9v+bpO2d/ZdayWgyvoQrtdg== X-Received: by 2002:a05:6638:338e:b0:324:1e27:e05c with SMTP id h14-20020a056638338e00b003241e27e05cmr8492650jav.55.1649623414924; Sun, 10 Apr 2022 13:43:34 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id h10-20020a056e020d4a00b002ca43835310sm12672819ilj.43.2022.04.10.13.43.34 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Apr 2022 13:43:34 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id CC4928009EE; Sun, 10 Apr 2022 15:43:33 -0500 (CDT) Date: Sun, 10 Apr 2022 15:43:33 -0500 From: Justin Pryzby To: Pavel Stehule Cc: Julien Rouhaud , Dean Rasheed , Joel Jacobson , pgsql-hackers@lists.postgresql.org Subject: Re: Schema variables - new implementation for Postgres 15+1 Message-ID: <20220410204333.GA26620@telsasoft.com> References: <20220129051946.outrihp7phagjeey@jrouhaud> <20220202140852.7wivednqmjp7nibf@jrouhaud> <20220303070652.xjmyd6xkeqfazvjh@jrouhaud> <20220303071626.c3ok2qz7s2rya25l@jrouhaud> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Apr 10, 2022 at 08:30:39PM +0200, Pavel Stehule wrote: > I am sending fresh rebased patch + separation to more patches. This split > is initial, and can be changed later The 0001 patch requires this, but it's not included until 0003. src/include/commands/session_variable.h Each patch should compile and pass tests with the preceding patches, without the following patches. I think the regression tests should be included with their corresponding patch. Maybe it's ok to separate out the changes for pg_dump, docs, and psql - but they'd have to be merged together eventually. I realize some of this runs counter to Julien's suggestion to split patches. The version should be changed: + if (fout->remoteVersion < 150000) I enabled these, which causes the regression tests fail: +#define COPY_PARSE_PLAN_TREES +#define WRITE_READ_PARSE_PLAN_TREES +#define RAW_EXPRESSION_COVERAGE_TEST /home/pryzbyj/src/postgres/src/test/regress/results/session_variables.out 2022-04-10 15:37:32.926306124 -0500 @@ -16,7 +16,7 @@ SET ROLE TO var_test_role; -- should fail LET var1 = 10; -ERROR: permission denied for session variable var1 +ERROR: unrecognized node type: 368 ...