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 1lMUvP-0002PA-DA for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Mar 2021 12:05:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lMUvO-0006Lz-21 for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Mar 2021 12:05:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMUvN-0006Lr-LT for pgsql-hackers@lists.postgresql.org; Wed, 17 Mar 2021 12:05:17 +0000 Received: from lb2-smtp-cloud7.xs4all.net ([194.109.24.28]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMUvJ-0003yX-PO for pgsql-hackers@lists.postgresql.org; Wed, 17 Mar 2021 12:05:17 +0000 Received: from ox-appsuite3.xs4all.net ([194.109.29.136]) by smtp-cloud7.xs4all.net with ESMTPSA id MUvHl9s7PDUxpMUvHlg9U6; Wed, 17 Mar 2021 13:05:12 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s2; t=1615982712; bh=wEEzMoDm9oF3fvQHkRHUF1KcztRovSTJvmd9CJNouDw=; h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type:From: Subject; b=I6aBUcebgHigrelaN0z/GaNV7nKnTAPriTjsy4FoaD0VyNJzsCeaCi+KAB4bnXKeC /RYHexcPZoFWZE50MI+KPGW4AaISFReTZuyZGk1AI73tXwRZFspFMO+W34Ny5U85pY 5yfddE1KMiJ2MJRhqQYEBAXeSH3JpbmDbrA+6qo/ulyR+WCofKSBnWA+BZ95KDo8fA w48/DYMsQ1uxFA+nTMAGzxUQERkUx/bklVVzFmqwzJY0IpskC9gCXtl+WgmmAAdCZZ PJjR5FwTuY9Q8c6cTK68Z/sqkLAlwaBtjCRlRw9CbFMWaPMR+5dHpeTWVfwvMXYHR4 6ChCrRBRYVBjg== Date: Wed, 17 Mar 2021 13:05:11 +0100 (CET) From: Erik Rijkers To: Pavel Stehule Cc: Michael Paquier , Zhihong Yu , Amit Kapila , DUVAL REMI , PostgreSQL Hackers Message-ID: <836057387.197819.1615982711621@webmailclassic.xs4all.nl> In-Reply-To: References: <20200924035637.GF28585@paquier.xyz> <20201001033824.GC8130@paquier.xyz> <51a9a68e8a998d04df17417d45c1dbd4@xs4all.nl> <89817942c99da01cd5e7850fe418436b@xs4all.nl> <56ca532c37eb0b540961f74a7bd5db39@xs4all.nl> Subject: Re: proposal: schema variables - doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.4-Rev16 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfDNjYs7syld5Ye/F/8uAxrM9HdT09njiVzlIdp/vpfL30eOADWsZPmErjUaXbDsEMcsxgqXOIzKGFe3pFHRML9Bp6sOoc+Hr1alWYNWLeLXejecVD4Ay NdQQ07FrK/ZUxR+Ret4OZmOGF/JhefZ97SG1RERSox0CscMuHl/gk/3oFaVKG2sBCOZ9zYVhleeoBKQLeB/WXB8o6gPDN+I5vhEHzOBRhvTV7r2haVKabut0 MgCvRm96HVD9y30AGYR7at40CJBdMC0f0oFKUjI7flTAeezLQKDFJp2nSFcqfTg8ExIINYSIpLrgb84fzNNxmBnfxORYlErRs4iCaCrNCv8/mqgG8x4EOf8T xEKMzhJXUIlHnMHSAKQ/7IbBHo5f3w== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 2021.03.13. 07:01 Pavel Stehule wrote: > Hi > fresh rebase > [schema-variables-20210313.patch.gz] Hi Pavel, I notice that the phrase 'schema variable' is not in the index at the end ('bookindex.html'). Not good. It is also not in the index at the front of the manual - also not good. Maybe these two (front and back index) can be added? If a user searches the pdf, the first occurrence he finds is at: 43.13.2.4. Global variables and constants (in itself that occurrence/mention is all right, but is should not be the first find, I think) (I think there was in earlier versions of the patch an entry in the 'contents', i.e., at the front of the manual). I think it would be good to have it in the front-index, pointing to either LET or CREATE VARIABLE, or maybe even to a small introductory paragraph somewhere else (again, I seem to remember that there was one in an earlier patch version). Of the new commands that this patch brings, 'LET' is the most immediately illuminating for a user (even when a CREATE VARIABLE has to be done first. There is an entry 'LET' in the index (good), but it would be better if that with LET-entry too the phrase 'schema variable' occurred. (I don't know if that's possible) Then, in the CREATE VARIABLE paragraphs it says 'Changing a schema variable is non-transactional by default.' I think that, unless there exists a mode where schema vars can be made transactional, 'by default' should be deleted (and there is no such 'transactional mode' for schema variables, is there?). The 'Description' also has such a 'By default' which is better removed for the same reason. In the CREATE VARIABLE page the example is: CREATE VARIABLE var1 AS integer; SELECT var1; I suggest to make that CREATE VARIABLE var1 AS date; LET var1 = (select current_date); SELECT var1; So that the example immediately shows an application of functionality. Thanks, Erik Rijkers > > Pavel