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 1ozWxa-0000dD-3Z for pgsql-docs@arkaria.postgresql.org; Mon, 28 Nov 2022 05:45:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ozWxY-0002tl-20 for pgsql-docs@arkaria.postgresql.org; Mon, 28 Nov 2022 05:45:40 +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 1ozWxX-0002tc-MR for pgsql-docs@lists.postgresql.org; Mon, 28 Nov 2022 05:45:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ozWxR-0003QG-1L for pgsql-docs@lists.postgresql.org; Mon, 28 Nov 2022 05:45:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2AS5jS6C452494; Mon, 28 Nov 2022 00:45:29 -0500 From: Tom Lane To: Laurenz Albe cc: Kirk Wolak , "David G. Johnston" , Bruce Momjian , ailjushkin@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: nextval parameter is not clear In-reply-to: References: <166608103231.2042183.13992576112735261253@wrigleys.postgresql.org> <21e017222199f3ca397fa70549140d226236e4b6.camel@cybertec.at> <0c0eddb287571e72a2df1be8758fbbb0cb7cc378.camel@cybertec.at> Comments: In-reply-to Laurenz Albe message dated "Mon, 28 Nov 2022 04:34:56 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <452492.1669614328.1@sss.pgh.pa.us> Date: Mon, 28 Nov 2022 00:45:28 -0500 Message-ID: <452493.1669614328@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe writes: > Now I think that is taking it too far. Your code sample would be great > for a tutorial, but it is too elaborate for the technical documentation. > The example should focus on the sequence functions, but more than half > of the code describes other parts of PostgreSQL: Yeah, that stuff seems quite out of place here. > I am alright with having a CREATE TABLE with a DEFAULT and an INSERT or two; > whatever it takes to show the functions in a realistic scenario. > For example, you could INSERT a row that overrides the DEFAULT, then call > "setval()" to readjust the sequence. I don't believe we have such detail around very many, if indeed any, of our other functions' documentation. regards, tom lane