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 1mzRmT-0006bk-H0 for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Dec 2021 23:09:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mzRmR-0007Fj-8t for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Dec 2021 23:09:19 +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 1mzRmQ-0007Fa-Su for pgsql-hackers@lists.postgresql.org; Mon, 20 Dec 2021 23:09:19 +0000 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mzRmM-0007F3-VM for pgsql-hackers@lists.postgresql.org; Mon, 20 Dec 2021 23:09:17 +0000 Received: by mail-io1-xd34.google.com with SMTP id z26so15320233iod.10 for ; Mon, 20 Dec 2021 15:09:14 -0800 (PST) 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=mw6oYe3kj6RF3ybSad6eqZ54oMRhHyFHKK5cMATV4W8=; b=wxjfVnA4BS5hcK5YdBbYSAasq6Htjc7m0r4azACdWbkQrDqXwV/baFevQWOwtw4I1+ eKq+OL3FYa7uM9/J2V3UXlylostugHwqOvvlcXeRjRAuMjqBF2kJrzWBzCzAX78+zOG2 RDs5bgJ2WXfLb0Pi53bxZItDJNYqWmTA8Whnv7a8KlTCy8YlqdN5Bb/yHckbLD7Svcrw v3uWvxw6KhLwLPRZ5e5zzFu5Sscz7S1T+ua/qP2GbEHLAyzHL9/ndwQqinfY5riZwziz vLy7gWmdME3mEVxMCvZtrF+RiiSmrGyt6TwTpWt1RzOAi6y+hmW+Fal73F417zkzOQtc 2tgQ== 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=mw6oYe3kj6RF3ybSad6eqZ54oMRhHyFHKK5cMATV4W8=; b=fw/3ZUNCHXKnuo4FnRFZscWKYsgGIDlpwnLqYm1l/OUxhd5TuCG4vn7CVU487TMOo1 KyiV+6ImNndR9KNhzQYmJBBe4IpW7es0/cSbmuT3mMOfKdK1u5AmB6peyhQP/1FaSzCN ina+02qigUDDS3iyT5idbbeM/p6uD9X/uXc87yknzZvVjbQ+2CaMlRzM+H6yAc4bs73U BQ1XNOygj1BN50ivp0g4TmgJNU7X3HQnMXFXxFLXS0n8J5x4DTU0f3Tf1GzXd1gKCXHE 7WwM7zZlj/Ud6jx+/HJIeF/fJQH+6qJqVKObTWTbY7Ln3q5/2steoy3EtLyIOzFWAZiB zECA== X-Gm-Message-State: AOAM532JPMBcs+fadFa9Asypg95McEYTrxlcasOueQlOYu0H24Z6uKlo uNtcNUXDDzj1R8uPfld1h9E5PA== X-Google-Smtp-Source: ABdhPJxC1gtK5dstlRDP6XnH3veinMS/k7tUCTqB4KIdQUghliWKux26DsnZpNci+5JmpRC5algYdw== X-Received: by 2002:a05:6602:8da:: with SMTP id h26mr231411ioz.76.1640041754068; Mon, 20 Dec 2021 15:09:14 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id y21sm9048035ioj.41.2021.12.20.15.09.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Dec 2021 15:09:13 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 30482800827; Mon, 20 Dec 2021 17:09:12 -0600 (CST) Date: Mon, 20 Dec 2021 17:09:12 -0600 From: Justin Pryzby To: Pavel Stehule Cc: Tomas Vondra , Jaime Casanova , Erik Rijkers , Gilles Darold , pgsql-hackers@lists.postgresql.org, Michael Paquier , Amit Kapila , Tomas Vondra , Peter Eisentraut , Tom Lane , Alvaro Herrera , Robert Haas Subject: Re: Schema variables - new implementation for Postgres 15 Message-ID: <20211220230911.GW17618@telsasoft.com> References: <20210912021338.GA21136@ahch-to> <68eedf25-79ca-d0e7-1af6-bad225fdcd97@enterprisedb.com> <20211106013904.GG17618@telsasoft.com> <20211115202352.GQ17618@telsasoft.com> 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 I don't understand what 0002 patch does relative to the 0001 patch. Is 0002 to change the error messages from "schema variables" to "session variables" , in a separate commit to show that the main patch doesn't change regression results ? Could you add commit messages ? I mentioned before that there's a pre-existing use of the phrase "session variable", which you should change to something else: origin:doc/src/sgml/ref/set_role.sgml: SET ROLE does not process session variables as specified by origin:doc/src/sgml/ref/set_role.sgml- the role's ALTER ROLE settings; this only happens during origin:doc/src/sgml/ref/set_role.sgml- login. Maybe "session variable" should be added to the glossary. The new tests crash if debug_discard_caches=on. 2021-12-20 16:15:44.476 CST postmaster[7478] LOG: server process (PID 7657) was terminated by signal 6: Aborted 2021-12-20 16:15:44.476 CST postmaster[7478] DETAIL: Failed process was running: DISCARD VARIABLES; TRAP: FailedAssertion("sessionvars", File: "sessionvariable.c", Line: 270, PID: 7657) #2 0x0000564858a4f1a8 in ExceptionalCondition (conditionName=conditionName@entry=0x564858b8626d "sessionvars", errorType=errorType@entry=0x564858aa700b "FailedAssertion", fileName=fileName@entry=0x564858b86234 "sessionvariable.c", lineNumber=lineNumber@entry=270) at assert.c:69 #3 0x000056485874fec6 in sync_sessionvars_xact_callback (event=, arg=) at sessionvariable.c:270 #4 sync_sessionvars_xact_callback (event=, arg=) at sessionvariable.c:253 #5 0x000056485868030a in CallXactCallbacks (event=XACT_EVENT_PRE_COMMIT) at xact.c:3644 #6 CommitTransaction () at xact.c:2178 #7 0x0000564858681975 in CommitTransactionCommand () at xact.c:3043 #8 0x000056485892b7a9 in finish_xact_command () at postgres.c:2722 #9 0x000056485892dc5b in finish_xact_command () at postgres.c:2720 #10 exec_simple_query () at postgres.c:1240 #11 0x000056485892f70a in PostgresMain () at postgres.c:4498 #12 0x000056485889a479 in BackendRun (port=, port=) at postmaster.c:4594 #13 BackendStartup (port=) at postmaster.c:4322 #14 ServerLoop () at postmaster.c:1802 #15 0x000056485889b47c in PostmasterMain () at postmaster.c:1474 #16 0x00005648585c60c0 in main (argc=5, argv=0x564858e553f0) at main.c:198