Re: documentation structure

2024-11-04 Thread Dagfinn Ilmari Mannsåker
Heikki Linnakangas writes: > On 30/09/2024 11:15, jian he wrote: >> In, 0001-func.sgml-Consistently-use-optional-to-indicate-opti.patch >> -format(formatstr >> text [, formatarg >> "any" [, ...] ]) >> +format(formatstr >> text , formatarg >> "any" [, ...] ) >> i change it further to >> +format(fo

Re: documentation structure

2024-11-04 Thread Heikki Linnakangas
On 30/09/2024 11:15, jian he wrote: In, 0001-func.sgml-Consistently-use-optional-to-indicate-opti.patch -format(formatstr text [, formatarg "any" [, ...] ]) +format(formatstr text , formatarg "any" [, ...] ) i change it further to +format(formatstr text , formatarg "any" , ... ) i did these ki

Re: documentation structure

2024-09-30 Thread jian he
In, 0001-func.sgml-Consistently-use-optional-to-indicate-opti.patch -format(formatstr text [, formatarg "any" [, ...] ]) +format(formatstr text , formatarg "any" [, ...] ) i change it further to +format(formatstr text , formatarg "any" , ... ) i did these kind of change to format, concat_ws, con

Re: documentation structure

2024-09-30 Thread jian he
turns out I hardcoded some line number information, which makes the script v7_split_func_sgml.py cannot apply anymore. this time, it should be bullet-proof. same as before: step1. python3 v8_split_func_sgml.py step2. git apply v8-0001-all-filelist-for-directory-doc-src-sgml-func.patch (step2, can

Re: documentation structure

2024-08-19 Thread jian he
On Tue, Aug 20, 2024 at 11:18 AM jian he wrote: > > On Mon, Jul 22, 2024 at 10:42 AM jian he wrote: > > > hi. this time everything should be ok! > > > step1. python3 split_func_sgml.py > step2. git apply > v6-0001-all-filelist-for-directory-doc-src-sgml-func.patch (step2, > cannot use "git am").

Re: documentation structure

2024-08-19 Thread jian he
On Mon, Jul 22, 2024 at 10:42 AM jian he wrote: > hi. this time everything should be ok! step1. python3 split_func_sgml.py step2. git apply v6-0001-all-filelist-for-directory-doc-src-sgml-func.patch (step2, cannot use "git am"). what v7_split_func_sgml.py did: 1. The new file only has 2 occur

Re: documentation structure

2024-07-21 Thread jian he
1. manually change line 4 in split_func_sgml.py and run the script. 2. git apply v6-0001-all-filelist-for-directory-doc-src-sgml-func.patch now you can "ninja doc/src/sgml/html" The logic is simple, but I am using verbose variable names, that's why split_func_sgml.py size is large. adding a new d

Re: documentation structure

2024-07-19 Thread David G. Johnston
On Fri, Jul 19, 2024 at 5:47 PM Tatsuo Ishii wrote: > >> IMO the file name should match the ID of the sect1 element with the > leading > >> "functions-" removed, naming the directory "functions". Thus when > viewing > >> the web page the corresponding sgml file is determinable. > > > > I'd go fo

Re: documentation structure

2024-07-19 Thread Tatsuo Ishii
>> IMO the file name should match the ID of the sect1 element with the leading >> "functions-" removed, naming the directory "functions". Thus when viewing >> the web page the corresponding sgml file is determinable. > > I'd go for shorter myself (ie "func/"), mainly due to the precedent > of the

Re: documentation structure

2024-07-19 Thread Tom Lane
"David G. Johnston" writes: > +many for placing these under a subdirectory. > IMO the file name should match the ID of the sect1 element with the leading > "functions-" removed, naming the directory "functions". Thus when viewing > the web page the corresponding sgml file is determinable. I'd g

Re: documentation structure

2024-07-19 Thread David G. Johnston
On Fri, Jul 19, 2024 at 1:01 PM Tatsuo Ishii wrote: > > Do we want to use a "func-" prefix on the file names? I could > > imagine dispensing with that as unnecessary; > > If we don't use the prefix and we generate new file names from sect1 > tag, we could have file name collision: for example, j

Re: documentation structure

2024-07-19 Thread Tatsuo Ishii
> Do we want to use a "func-" prefix on the file names? I could > imagine dispensing with that as unnecessary; If we don't use the prefix and we generate new file names from sect1 tag, we could have file name collision: for example, json.sgml because there's sect1 tag "functions-json". > or anot

Re: documentation structure

2024-07-19 Thread Tom Lane
"David G. Johnston" writes: > On Thu, Jul 18, 2024 at 8:06 PM Tatsuo Ishii wrote: >>> I'm opposed to having a separate file for every function. I think >>> breaking up func.sgml into one piece per sect1 is about right. >> That will create at least 30 func-xx.sgml files. >> I am afraid that's too

Re: documentation structure

2024-07-19 Thread jian he
On Fri, Jul 19, 2024 at 12:07 PM David G. Johnston wrote: > > On Thu, Jul 18, 2024 at 8:06 PM Tatsuo Ishii wrote: >> >> > I'm opposed to having a separate file for every function. I think >> > breaking up func.sgml into one piece per sect1 is about right. If that >> > proves cumbersome still we c

Re: documentation structure

2024-07-18 Thread David G. Johnston
On Thu, Jul 18, 2024 at 8:06 PM Tatsuo Ishii wrote: > > I'm opposed to having a separate file for every function. I think > > breaking up func.sgml into one piece per sect1 is about right. If that > > proves cumbersome still we can look at breaking it up further, but > > let's start with that. >

Re: documentation structure

2024-07-18 Thread Tatsuo Ishii
> I'm opposed to having a separate file for every function. I think > breaking up func.sgml into one piece per sect1 is about right. If that > proves cumbersome still we can look at breaking it up further, but > let's start with that. That will create at least 30 func-xx.sgml files. t-ishii$ grep

Re: documentation structure

2024-07-18 Thread Tom Lane
Andrew Dunstan writes: > I'm opposed to having a separate file for every function. I also think that would be a disaster. It would result in a huge number of files which would make global editing (eg markup changes) really painful, and it by no means flattens the document structure. Somewhere th

Re: documentation structure

2024-07-18 Thread Andrew Dunstan
On 2024-07-18 Th 4:16 PM, Corey Huinker wrote: looking back. The patch is big. no convenient way to review/validate it. Perhaps we can break up the patches as follows: 1. create the filelist.sgml entries, and create new files as you detailed, empty with func.sgml still managing the

Re: documentation structure

2024-07-18 Thread Corey Huinker
> > > looking back. > The patch is big. no convenient way to review/validate it. > Perhaps we can break up the patches as follows: 1. create the filelist.sgml entries, and create new files as you detailed, empty with func.sgml still managing the sections, but each section now has it's correspondi

Re: documentation structure

2024-07-14 Thread jian he
On Mon, Apr 29, 2024 at 1:17 PM Corey Huinker wrote: >> >> I've splitted it to7 patches. >> each patch split one into separate new files. > > > Seems like a good start. Looking at the diffs of these, I wonder if we would > be better off with a func/ directory, each function gets its own file in

Re: documentation structure

2024-04-28 Thread Corey Huinker
> > I've splitted it to7 patches. > each patch split one into separate new files. > Seems like a good start. Looking at the diffs of these, I wonder if we would be better off with a func/ directory, each function gets its own file in that dir, and either these files above include the individual f

Re: documentation structure

2024-04-19 Thread jian he
On Wed, Apr 17, 2024 at 7:07 PM Dagfinn Ilmari Mannsåker wrote: > > > > It'd also be quite useful if clients could render more of the documentation > > for functions. People are used to language servers providing full > > documentation for functions etc... > > A more user-friendly version of \df+

Re: documentation structure

2024-04-18 Thread Corey Huinker
> > Yeah, we can't expect everyone wanting to call a built-in function to > know how they would define an equivalent one themselves. In that case I > propos marking it up like this: > > format ( > formatstr text > , formatarg "any" > , ... ) > text > Looks good, but I guess I

Re: documentation structure

2024-04-18 Thread Dagfinn Ilmari Mannsåker
Corey Huinker writes: >> >> I havent dealt with variadic yet, since the two styles are visually >> different, not just markup (... renders as [...]). >> >> The two styles for variadic are the what I call caller-style: >> >>concat ( val1 "any" [, val2 "any" [, ...] ] ) >>format(formatstr t

Re: documentation structure

2024-04-18 Thread Corey Huinker
> > I havent dealt with variadic yet, since the two styles are visually > different, not just markup (... renders as [...]). > > The two styles for variadic are the what I call caller-style: > >concat ( val1 "any" [, val2 "any" [, ...] ] ) >format(formatstr text [, formatarg "any" [, ...] ]

Re: documentation structure

2024-04-18 Thread jian he
On Thu, Apr 18, 2024 at 2:37 AM Dagfinn Ilmari Mannsåker wrote: > > Andres Freund writes: > > > Hi, > > > > On 2024-04-17 12:07:24 +0100, Dagfinn Ilmari Mannsåker wrote: > >> Andres Freund writes: > >> > I think the manual work for writing signatures in sgml is not > >> > insignificant, > >> >

Re: documentation structure

2024-04-17 Thread Dagfinn Ilmari Mannsåker
Andres Freund writes: > Hi, > > On 2024-04-17 12:07:24 +0100, Dagfinn Ilmari Mannsåker wrote: >> Andres Freund writes: >> > I think the manual work for writing signatures in sgml is not >> > insignificant, >> > nor is the volume of sgml for them. Manually maintaining the signatures >> > makes

Re: documentation structure

2024-04-17 Thread Andres Freund
Hi, On 2024-04-17 12:07:24 +0100, Dagfinn Ilmari Mannsåker wrote: > Andres Freund writes: > > I think the manual work for writing signatures in sgml is not insignificant, > > nor is the volume of sgml for them. Manually maintaining the signatures > > makes > > it impractical to significantly imp

Re: documentation structure

2024-04-17 Thread Andres Freund
Hi, On 2024-04-17 02:46:53 -0400, Corey Huinker wrote: > > > This sounds to me like it would be a painful exercise with not a > > > lot of benefit in the end. > > > > Maybe we could _verify_ the contents of func.sgml against pg_proc. > > > > All of the functions redefined in catalog/system_functi

Re: documentation structure

2024-04-17 Thread Corey Huinker
> > And it's very inconsistent. For example, some functions use > tags for optional parameters, others use square brackets, and some use > VARIADIC to indicate variadic parameters, others use > ellipses (sometimes in tags or brackets). Having just written a couple of those functions, I wasn't

Re: documentation structure

2024-04-17 Thread Dagfinn Ilmari Mannsåker
Andres Freund writes: > Definitely shouldn't be the same in all cases, but I think there's a decent > number of cases where they can be the same. The differences between the two is > often minimal today. > > Entirely randomly chosen example: > > { oid => '2825', > descr => 'slope of the least-s

Re: documentation structure

2024-04-16 Thread Corey Huinker
> > > This sounds to me like it would be a painful exercise with not a > > lot of benefit in the end. > > Maybe we could _verify_ the contents of func.sgml against pg_proc. > All of the functions redefined in catalog/system_functions.sql complicate using pg_proc.dat as a doc generator or source of

Re: documentation structure

2024-04-16 Thread Andres Freund
Hi, On 2024-04-16 15:05:32 -0400, Tom Lane wrote: > Andres Freund writes: > > I think we should work on generating a lot of func.sgml. Particularly the > > signature etc should just come from pg_proc.dat, it's pointlessly painful to > > generate that by hand. And for a lot of the functions we sh

Re: documentation structure

2024-04-16 Thread Bruce Momjian
On Tue, Apr 16, 2024 at 03:05:32PM -0400, Tom Lane wrote: > Andres Freund writes: > > I think we should work on generating a lot of func.sgml. Particularly the > > signature etc should just come from pg_proc.dat, it's pointlessly painful to > > generate that by hand. And for a lot of the function

Re: documentation structure

2024-04-16 Thread Tom Lane
Andres Freund writes: > I think we should work on generating a lot of func.sgml. Particularly the > signature etc should just come from pg_proc.dat, it's pointlessly painful to > generate that by hand. And for a lot of the functions we should probably move > the existing func.sgml comments to the

Re: documentation structure

2024-04-16 Thread Andres Freund
Hi, On 2024-03-19 17:39:39 -0400, Andrew Dunstan wrote: > My own pet docs peeve is a purely editorial one: func.sgml is a 30k line > beast, and I think there's a good case for splitting out at least the > larger chunks of it. I think we should work on generating a lot of func.sgml. Particularly

Re: documentation structure

2024-04-15 Thread Robert Haas
On Mon, Apr 8, 2024 at 10:15 AM Peter Eisentraut wrote: > > Here is a new version of this patch. I think this is v18 material at > > this point, absent an outcry to the contrary. Sometimes we're flexible > > about doc patches. > > Looks good to me. I think this could go into PG17. Hearing no obj

Re: documentation structure

2024-04-14 Thread jian he
On Wed, Mar 20, 2024 at 5:40 AM Andrew Dunstan wrote: > > > +many for improving the index. > > My own pet docs peeve is a purely editorial one: func.sgml is a 30k line > beast, and I think there's a good case for splitting out at least the larger > chunks of it. > I think I successfully reduced

Re: documentation structure

2024-04-08 Thread Peter Eisentraut
On 05.04.24 17:11, Robert Haas wrote: 4. Consolidate the "Generic WAL Records" and "Custom WAL Resource Managers" chapters, which cover related topics, into a single one. I didn't see anyone object to this, but David Johnston pointed out that the patch I posted was a few bricks short of a load, b

Re: documentation structure

2024-04-05 Thread David G. Johnston
On Fri, Apr 5, 2024 at 9:18 AM Robert Haas wrote: > On Fri, Apr 5, 2024 at 12:15 PM David G. Johnston > wrote: > > Here is a link to my attempt at this a couple of years ago. It > basically "abuses" refentry. > > > > > https://www.postgresql.org/message-id/CAKFQuwaVm%3D6d_sw9Wrp4cdSm5_k%3D8ZVx0

Re: documentation structure

2024-04-05 Thread Robert Haas
On Fri, Apr 5, 2024 at 12:15 PM David G. Johnston wrote: > Here is a link to my attempt at this a couple of years ago. It basically > "abuses" refentry. > > https://www.postgresql.org/message-id/CAKFQuwaVm%3D6d_sw9Wrp4cdSm5_k%3D8ZVx0--v2v4BH4KnJtqXqg%40mail.gmail.com > > I never did dive into th

Re: documentation structure

2024-04-05 Thread David G. Johnston
On Fri, Apr 5, 2024 at 9:01 AM Robert Haas wrote: > > > The rendering can be adjusted to some degree, but then we also need to > > make sure any new chunking makes sense in other chapters. (And it might > > also change a bunch of externally known HTML links.) > > I looked into this and I'm uncle

Re: documentation structure

2024-04-05 Thread Robert Haas
e current index with a custom index or landing page of some kind. Or keep the current index and add a new landing page alongside it. Something that isn't derived automatically from the documentation structure but is created by hand. -- Robert Haas EDB: http://www.enterprisedb.com

Re: documentation structure

2024-04-05 Thread Robert Haas
On Fri, Mar 29, 2024 at 9:40 AM Robert Haas wrote: > 2. Demote "Monitoring Disk Usage" from a chapter on its own to a > section of the "Monitoring Database Activity" chapter. I haven't seen > any objections to this, and I'd like to move ahead with it. > > 3. Merge the separate chapters on various

Re: documentation structure

2024-03-29 Thread Robert Haas
OK, so I'm coming back to this thread after giving it a few days to cool off. My last series of patches proposed to do five things: 1. Merge the four-sentence "Installation from Binaries" chapter back into "Installation from Source". I thought this was a slam-dunk, but Peter pointed out that exact

Re: documentation structure

2024-03-25 Thread Robert Haas
On Mon, Mar 25, 2024 at 11:40 AM Peter Eisentraut wrote: > I think a possible problem we need to consider with these proposals to > combine chapters is that they could make the chapters themselves too > deep and harder to navigate. For example, if we combined the > installation from source and bi

Re: documentation structure

2024-03-25 Thread Peter Eisentraut
On 22.03.24 15:10, Robert Haas wrote: Sorry. I didn't mean to dispute the point that the section was added a few years ago, nor the point that most people just want to read about the binaries. I am confident that both of those things are true. What I do want to dispute is that having a four-sente

Re: documentation structure

2024-03-25 Thread Peter Eisentraut
On 22.03.24 14:59, Robert Haas wrote: And I don't believe that if someone were writing a physical book about PostgreSQL from scratch, they'd ever end up with a top-level chapter that looks anything like our GiST chapter. All of the index AM chapters are quite obviously clones of each other, and t

Re: documentation structure

2024-03-22 Thread Robert Haas
On Fri, Mar 22, 2024 at 3:17 PM Bruce Momjian wrote: > I agree and they should be with the other views. I was just explaining > why, at the time, I didn't touch them. Ah, OK. That makes total sense. -- Robert Haas EDB: http://www.enterprisedb.com

Re: documentation structure

2024-03-22 Thread Bruce Momjian
On Fri, Mar 22, 2024 at 03:13:29PM -0400, Robert Haas wrote: > On Fri, Mar 22, 2024 at 2:59 PM Bruce Momjian wrote: > > I assume statistics collector views are in "Monitoring Database > > Activity" because that is their purpose. > > Well, yes. :-) > > But the point is that all other statistics v

Re: documentation structure

2024-03-22 Thread Robert Haas
On Fri, Mar 22, 2024 at 2:59 PM Bruce Momjian wrote: > I assume statistics collector views are in "Monitoring Database > Activity" because that is their purpose. Well, yes. :-) But the point is that all other statistics views are in a single section regardless of their purpose. We don't document

Re: documentation structure

2024-03-22 Thread David G. Johnston
On Fri, Mar 22, 2024 at 11:19 AM Robert Haas wrote: > On Fri, Mar 22, 2024 at 1:35 PM Bruce Momjian wrote: > > But that all seems like a separate question from why we have the > statistic collector views in a completely different part of the > documentation from the rest of the system views. My

Re: documentation structure

2024-03-22 Thread Bruce Momjian
On Fri, Mar 22, 2024 at 02:19:29PM -0400, Robert Haas wrote: > If you were actually looking for the section called "System Views", > you weren't likely to see it here unless you already knew it was > there, because it was 64 items into a 97-item list. Having one of > these two sections inside the o

Re: documentation structure

2024-03-22 Thread Robert Haas
On Fri, Mar 22, 2024 at 1:35 PM Bruce Momjian wrote: > > One question I have is why all of these views are documented here > > rather than in chapter 53, "System Views," because surely they are > > system views. I feel like if our documentation index weren't a mile > > long and if you could easily

Re: documentation structure

2024-03-22 Thread Bruce Momjian
On Fri, Mar 22, 2024 at 08:32:14AM -0400, Robert Haas wrote: > On Thu, Mar 21, 2024 at 6:32 PM David G. Johnston > wrote: > > Just going to note that the section on the cumulative statistics views > > being a single page is still a strongly bothersome issue here. Though the > > quick fix actual

Re: documentation structure

2024-03-22 Thread David G. Johnston
On Fri, Mar 22, 2024, 09:32 Robert Haas wrote: > > > I notice that you say that the "Installation" section should "cover > the architectural overview and point people to where they can find the > stuff they need to install PostgreSQL in the various ways available to > them" so maybe you're not im

Re: documentation structure

2024-03-22 Thread Robert Haas
On Fri, Mar 22, 2024 at 11:50 AM David G. Johnston wrote: > On Fri, Mar 22, 2024 at 7:10 AM Robert Haas wrote: >> That's actually what we had in chapter >> 18, "Installation from Source Code on Windows", since removed. But for >> some reason we decided that on non-Windows platforms, it needed a >

Re: documentation structure

2024-03-22 Thread David G. Johnston
On Fri, Mar 22, 2024 at 7:10 AM Robert Haas wrote: > > That's actually what we had in chapter > 18, "Installation from Source Code on Windows", since removed. But for > some reason we decided that on non-Windows platforms, it needed a > whole new chapter rather than an extra sentence in the exist

Re: documentation structure

2024-03-22 Thread Robert Haas
On Fri, Mar 22, 2024 at 9:35 AM Peter Eisentraut wrote: > >> But this separation was explicitly added a few years ago, because most > >> people just want to read about the binaries. > > > > I really doubt that this is true. > > Here is the thread: > https://www.postgresql.org/message-id/flat/CABUe

Re: documentation structure

2024-03-22 Thread Robert Haas
On Thu, Mar 21, 2024 at 7:40 PM Peter Eisentraut wrote: > I'm highly against this. If I want to read about PL/Python, why should > I have to wade through PL/Perl and PL/Tcl? > > I think, abstractly, in a book, PL/Python should be a chapter of its > own. Just like GiST should be a chapter of its

Re: documentation structure

2024-03-22 Thread Peter Eisentraut
On 22.03.24 13:50, Robert Haas wrote: On Thu, Mar 21, 2024 at 7:37 PM Peter Eisentraut wrote: On 20.03.24 17:43, Robert Haas wrote: 0001 removes the "Installation from Binaries" chapter. The whole thing is four sentences. I moved the most important information into the "Installation from Sourc

Re: documentation structure

2024-03-22 Thread Robert Haas
On Thu, Mar 21, 2024 at 7:37 PM Peter Eisentraut wrote: > On 20.03.24 17:43, Robert Haas wrote: > > 0001 removes the "Installation from Binaries" chapter. The whole thing > > is four sentences. I moved the most important information into the > > "Installation from Source Code" chapter and retitled

Re: documentation structure

2024-03-22 Thread Robert Haas
On Thu, Mar 21, 2024 at 6:32 PM David G. Johnston wrote: > Just going to note that the section on the cumulative statistics views being > a single page is still a strongly bothersome issue here. Though the quick > fix actually requires upgrading the section to chapter status... Yeah, I've been

Re: documentation structure

2024-03-21 Thread Bruce Momjian
On Fri, Mar 22, 2024 at 01:12:30AM +0100, Daniel Gustafsson wrote: > > On 22 Mar 2024, at 00:33, Peter Eisentraut wrote: > > > > On 19.03.24 14:50, Tom Lane wrote: > >> Daniel Gustafsson writes: > >>> It's actually not very odd, the reference section is using > >>> elements > >>> and we had mi

Re: documentation structure

2024-03-21 Thread Daniel Gustafsson
> On 22 Mar 2024, at 00:33, Peter Eisentraut wrote: > > On 19.03.24 14:50, Tom Lane wrote: >> Daniel Gustafsson writes: >>> It's actually not very odd, the reference section is using >>> elements >>> and we had missed the arabic numerals setting on those. The attached fixes >>> that for me.

Re: documentation structure

2024-03-21 Thread Peter Eisentraut
On 21.03.24 15:31, Robert Haas wrote: On Thu, Mar 21, 2024 at 9:38 AM Tom Lane wrote: I'd follow the extend.sgml precedent: have a file corresponding to the chapter and containing any top-level text we need, then that includes a file per sect1. OK, here's a new patch set. I've revised 0003 an

Re: documentation structure

2024-03-21 Thread Peter Eisentraut
On 20.03.24 17:43, Robert Haas wrote: 0001 removes the "Installation from Binaries" chapter. The whole thing is four sentences. I moved the most important information into the "Installation from Source Code" chapter and retitled it "Installation". But this separation was explicitly added a few

Re: documentation structure

2024-03-21 Thread Peter Eisentraut
On 19.03.24 14:50, Tom Lane wrote: Daniel Gustafsson writes: It's actually not very odd, the reference section is using elements and we had missed the arabic numerals setting on those. The attached fixes that for me. That being said, we've had roman numerals for the reference section since f

Re: documentation structure

2024-03-21 Thread David G. Johnston
On Thu, Mar 21, 2024 at 11:30 AM Robert Haas wrote: > > My second thought is that the stuff from "VII. Internals" that I > categorized as reference material should move into section "VI. > Reference". I think we should also consider moving appendix F, > "Additional Supplied Modules and Extensions

Re: documentation structure

2024-03-21 Thread David G. Johnston
On Wed, Mar 20, 2024 at 9:43 AM Robert Haas wrote: > On Tue, Mar 19, 2024 at 5:39 PM Andrew Dunstan > wrote: > > +many for improving the index. > > Here's a series of four patches. I reviewed the most recent set of 5 patches. > Taken together, they cut down the > number of numbered chapters

Re: documentation structure

2024-03-21 Thread Robert Haas
On Thu, Mar 21, 2024 at 12:43 PM Alvaro Herrera wrote: > which is a bit odd: why are the two WAL chapters in the middle of the > chapters 62 and 63 talking about AMs? Maybe put 66 right after 63 > instead.Also, is it really better to have 62/63 first and 66 > later? It sounds to me like 66 i

Re: documentation structure

2024-03-21 Thread Alvaro Herrera
On 2024-Mar-21, Robert Haas wrote: > On Thu, Mar 21, 2024 at 9:38 AM Tom Lane wrote: > > I'd follow the extend.sgml precedent: have a file corresponding to the > > chapter and containing any top-level text we need, then that includes > > a file per sect1. > > OK, here's a new patch set. I've rev

Re: documentation structure

2024-03-21 Thread Robert Haas
On Thu, Mar 21, 2024 at 10:31 AM Robert Haas wrote: > 0001 and 0002 are changed. Should 0002 use the include-an-entity > approach as well? Woops. I meant to say that 0001 and 0002 are *unchanged*. -- Robert Haas EDB: http://www.enterprisedb.com

Re: documentation structure

2024-03-21 Thread Robert Haas
On Thu, Mar 21, 2024 at 9:38 AM Tom Lane wrote: > I'd follow the extend.sgml precedent: have a file corresponding to the > chapter and containing any top-level text we need, then that includes > a file per sect1. OK, here's a new patch set. I've revised 0003 and 0004 to use this approach, and I'v

Re: documentation structure

2024-03-21 Thread Tom Lane
Robert Haas writes: > Well, I suppose I thought it was a good idea because (1) we don't seem > to have any existing precedent for file-per-sect1 rather than > file-per-chapter and (2) all of the per-AM files combined are less > than 20% of the size of func.sgml. We have done (1) in places, eg. js

Re: documentation structure

2024-03-21 Thread Robert Haas
On Wed, Mar 20, 2024 at 5:25 PM Tom Lane wrote: > I'd say that a separate file per AM is a good thing regardless. > Elsewhere in this same thread are grumblings about how big func.sgml > is; why would you think it good to start down that same path for the > AM documentation? Well, I suppose I tho

Re: documentation structure

2024-03-20 Thread Tom Lane
Robert Haas writes: > On Wed, Mar 20, 2024 at 5:05 PM Alvaro Herrera > wrote: >> I think you can achieve this with a much smaller patch that just changes >> the outer tag in each file so that each file is a , then create a >> single file that includes all of these plus an additional outer tag fo

Re: documentation structure

2024-03-20 Thread Robert Haas
On Wed, Mar 20, 2024 at 5:05 PM Alvaro Herrera wrote: > I think you can achieve this with a much smaller patch that just changes > the outer tag in each file so that each file is a , then create a > single file that includes all of these plus an additional outer tag for > the (or maybe just add t

Re: documentation structure

2024-03-20 Thread Alvaro Herrera
On 2024-Mar-20, Robert Haas wrote: > 0003 merges all of the "Internals" chapters whose names are the names > of built-in index access methods (Btree, Gin, etc.) into a single > chapter called "Built-In Index Access Methods". All of these chapters > have a very similar structure and none of them ar

Re: documentation structure

2024-03-20 Thread Robert Haas
On Wed, Mar 20, 2024 at 1:35 PM Bruce Momjian wrote: > On Wed, Mar 20, 2024 at 12:43:08PM -0400, Robert Haas wrote: > > Overall, I think this achieves a minor but pleasant level of > > de-cluttering of the index. It's going to take a lot more than one > > morning's work to produce a major improvem

Re: documentation structure

2024-03-20 Thread Bruce Momjian
On Wed, Mar 20, 2024 at 12:43:08PM -0400, Robert Haas wrote: > Overall, I think this achieves a minor but pleasant level of > de-cluttering of the index. It's going to take a lot more than one > morning's work to produce a major improvement, but at least this is > something. I think this kind of d

Re: documentation structure

2024-03-20 Thread Robert Haas
On Mon, Mar 18, 2024 at 5:40 PM Laurenz Albe wrote: > I also disagree that chapters 4 to 6 are a continuation of the tutorial. > Or at least, they shouldn't be. > When I am looking for a documentation reference on something like > security considerations of SECURITY DEFINER functions, my first > i

Re: documentation structure

2024-03-19 Thread Andrew Dunstan
On Mon, Mar 18, 2024 at 10:12 AM Robert Haas wrote: > I was looking at the documentation index this morning[1], and I can't > help feeling like there are some parts of it that are over-emphasized > and some parts that are under-emphasized. I'm not sure what we can do > about this exactly, but I t

Re: documentation structure

2024-03-19 Thread Tom Lane
Daniel Gustafsson writes: > It's actually not very odd, the reference section is using > elements > and we had missed the arabic numerals setting on those. The attached fixes > that for me. That being said, we've had roman numerals for the reference > section since forever (all the way down to

Re: documentation structure

2024-03-19 Thread Daniel Gustafsson
> On 18 Mar 2024, at 22:40, Laurenz Albe wrote: > On Mon, 2024-03-18 at 10:11 -0400, Robert Haas wrote: >> For reasons that I don't understand, all chapters except >> for those in "VI. Reference" are numbered, but the chapters in that >> section have Roman numerals instead. > > That last fact is

Re: documentation structure

2024-03-18 Thread Robert Haas
On Mon, Mar 18, 2024 at 6:51 PM Tom Lane wrote: > This might be a silly suggestion, but: could we just render the > "most important" chapter titles in a larger font? It's not the silliest suggestion ever -- you could have proposed ! -- but I also suspect it's not the right answer. Of course, vary

Re: documentation structure

2024-03-18 Thread Tom Lane
Laurenz Albe writes: > On Mon, 2024-03-18 at 10:11 -0400, Robert Haas wrote: >> I don't know what to do about "I. SQL commands". It's obviously >> impractical to promote that to a top-level section, because it's got a >> zillion sub-pages which I don't think we want in the top-level >> documentati

Re: documentation structure

2024-03-18 Thread Laurenz Albe
On Mon, 2024-03-18 at 10:11 -0400, Robert Haas wrote: > The two sections of the documentation that seem really > under-emphasized to me are the GUC documentation and the SQL > reference. The GUC documentation is all buried under "20. Server > Configuration" and the SQL command reference is under "I

Re: documentation structure

2024-03-18 Thread Roberto Mello
On Mon, Mar 18, 2024 at 10:12 AM Robert Haas wrote: > I was looking at the documentation index this morning[1], and I can't > help feeling like there are some parts of it that are over-emphasized > and some parts that are under-emphasized. I'm not sure what we can do > about this exactly, but I t

Re: documentation structure

2024-03-18 Thread Robert Haas
On Mon, Mar 18, 2024 at 10:55 AM Matthias van de Meent wrote: > > I don't know what to do about "I. SQL commands". It's obviously > > impractical to promote that to a top-level section, because it's got a > > zillion sub-pages which I don't think we want in the top-level > > documentation index. B

Re: documentation structure

2024-03-18 Thread Matthias van de Meent
On Mon, 18 Mar 2024 at 15:12, Robert Haas wrote: I'm not going into detail about the other docs comments, I don't have much of an opinion either way on the mentioned sections. You make good arguments; yet I don't usually use those sections of the docs but rather do code searches. > I don't know

documentation structure

2024-03-18 Thread Robert Haas
I was looking at the documentation index this morning[1], and I can't help feeling like there are some parts of it that are over-emphasized and some parts that are under-emphasized. I'm not sure what we can do about this exactly, but I thought it worth writing an email and seeing what other people