| From: | Kirk Wolak <wolakk(at)gmail(dot)com> | 
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
| Cc: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, ailjushkin(at)gmail(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org | 
| Subject: | Re: nextval parameter is not clear | 
| Date: | 2022-11-28 17:23:01 | 
| Message-ID: | CACLU5mTHue1aNhbSND+exLs3jHHO=UnAr3g6ZBaEhOhkK0et5w@mail.gmail.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-docs | 
On Mon, Nov 28, 2022 at 12:45 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> 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
>
my goal is to get an "approach" accepted, this is the first.  Ultimately, I
would love to see
the documentation of functions with examples like this everywhere.
Preferably where someone
can copy/paste the example and see the results.  *And I fully intend to
create them all myself,*
*if that's what it takes. *But I would prefer the hard work now, and then I
can stream-line the process.
The driver was my own frustration when I first started learning PG and the
lack of concrete examples.
How are these things used, in context?  [I learn through reading code]
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kirk Wolak | 2022-11-28 17:28:56 | Re: nextval parameter is not clear | 
| Previous Message | PG Doc comments form | 2022-11-28 14:29:27 | Installing PostgreSQL 11 from source on Windows |