pgsql: Move documentation of all recovery.conf option to a new chapter.

Lists: pgsql-committerspgsql-hackers
From: heikki(at)postgresql(dot)org (Heikki Linnakangas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Move documentation of all recovery.conf option to a new chapter.
Date: 2010-02-22 11:47:30
Message-ID: 20100222114730.ADEC37541D0@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Log Message:
-----------
Move documentation of all recovery.conf option to a new chapter.
They used to be scattered between the "backup and restore" and "streaming
replication" chapters.

Modified Files:
--------------
pgsql/doc/src/sgml:
backup.sgml (r2.142 -> r2.143)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/backup.sgml?r1=2.142&r2=2.143)
filelist.sgml (r1.66 -> r1.67)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/filelist.sgml?r1=1.66&r2=1.67)
high-availability.sgml (r1.48 -> r1.49)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/high-availability.sgml?r1=1.48&r2=1.49)
postgres.sgml (r1.90 -> r1.91)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/postgres.sgml?r1=1.90&r2=1.91)

Added Files:
-----------
pgsql/doc/src/sgml:
recovery-config.sgml (r2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/recovery-config.sgml?rev=2.1&content-type=text/x-cvsweb-markup)


From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Heikki Linnakangas <heikki(at)postgresql(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Move documentation of all recovery.conf option to a new chapter.
Date: 2010-02-23 23:24:06
Message-ID: 1266967446.3752.4843.camel@ebony
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

On Mon, 2010-02-22 at 11:47 +0000, Heikki Linnakangas wrote:
> Log Message:
> -----------
> Move documentation of all recovery.conf option to a new chapter.
> They used to be scattered between the "backup and restore" and "streaming
> replication" chapters.

It's just taken me 15 minutes to locate the settings for
primary_conninfo to better understand Stefan's recent post.

The commit referred to here is an extremely bad change.

If you intended this to be a heading within the "High Availability"
chapter then I would agree. This is what I thought you had done.

Having Streaming Rep described in HA and then describing the parameters
that make it work in a separate chapter is ridiculous. Plus, wherever
they are, they need cross references between them.

This is the last straw for me. The Streaming Rep docs are now truly
appalling. They were thin before, but tieing them in knots and splitting
them into disconnected pieces is just too much. If I can't find the damn
things, we've gone too far.

SR is a big feature and deserves proper docs.

--
Simon Riggs www.2ndQuadrant.com


From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Heikki Linnakangas <heikki(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: [COMMITTERS] pgsql: Move documentation of all recovery.conf option to a new chapter.
Date: 2010-02-24 04:58:35
Message-ID: 3f0b79eb1002232058l5b7fd2adnb202b82461512edd@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

On Wed, Feb 24, 2010 at 8:24 AM, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
> On Mon, 2010-02-22 at 11:47 +0000, Heikki Linnakangas wrote:
>> Log Message:
>> -----------
>> Move documentation of all recovery.conf option to a new chapter.
>> They used to be scattered between the "backup and restore" and "streaming
>> replication" chapters.
>
> It's just taken me 15 minutes to locate the settings for
> primary_conninfo to better understand Stefan's recent post.

We would need to expose recovery configuration parameters as
indexterm, as well as GUC.

> The commit referred to here is an extremely bad change.
>
> If you intended this to be a heading within the "High Availability"
> chapter then I would agree. This is what I thought you had done.
>
> Having Streaming Rep described in HA and then describing the parameters
> that make it work in a separate chapter is ridiculous. Plus, wherever
> they are, they need cross references between them.
>
> This is the last straw for me. The Streaming Rep docs are now truly
> appalling. They were thin before, but tieing them in knots and splitting
> them into disconnected pieces is just too much. If I can't find the damn
> things, we've gone too far.
>
> SR is a big feature and deserves proper docs.

Yeah, we need to improve the SR document. So I began modifying it
in my git repository.

* git://git.postgresql.org/git/users/fujii/postgres.git
* branch: replication-doc

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Move documentation of all recovery.conf option to a new chapter.
Date: 2010-02-24 06:30:27
Message-ID: 4B84C783.2090408@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Simon Riggs wrote:
> On Mon, 2010-02-22 at 11:47 +0000, Heikki Linnakangas wrote:
>> Log Message:
>> -----------
>> Move documentation of all recovery.conf option to a new chapter.
>> They used to be scattered between the "backup and restore" and "streaming
>> replication" chapters.
>
> It's just taken me 15 minutes to locate the settings for
> primary_conninfo to better understand Stefan's recent post.
>
> The commit referred to here is an extremely bad change.
>
> If you intended this to be a heading within the "High Availability"
> chapter then I would agree. This is what I thought you had done.

The idea was to have one chapter that describes all the options in
recovery.conf. Some of them are specific to streaming replication
(primary_conninfo), some are specific to PITR (recovery_target_*), some
are common (restore_command, restore_end_command). We need a reference
page to list them all.

> Having Streaming Rep described in HA and then describing the parameters
> that make it work in a separate chapter is ridiculous. Plus, wherever
> they are, they need cross references between them.

Yeah, there needs to be cross references. And the streaming rep docs
need to describe how to set the relevant settings, with examples.

> SR is a big feature and deserves proper docs.

Agreed.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com


From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Move documentation of all recovery.conf option to a new chapter.
Date: 2010-02-24 07:31:25
Message-ID: 1266996685.3752.5825.camel@ebony
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

On Wed, 2010-02-24 at 08:30 +0200, Heikki Linnakangas wrote:
> Simon Riggs wrote:
> > On Mon, 2010-02-22 at 11:47 +0000, Heikki Linnakangas wrote:
> >> Log Message:
> >> -----------
> >> Move documentation of all recovery.conf option to a new chapter.
> >> They used to be scattered between the "backup and restore" and "streaming
> >> replication" chapters.
> >
> > It's just taken me 15 minutes to locate the settings for
> > primary_conninfo to better understand Stefan's recent post.
> >
> > The commit referred to here is an extremely bad change.
> >
> > If you intended this to be a heading within the "High Availability"
> > chapter then I would agree. This is what I thought you had done.
>
> The idea was to have one chapter that describes all the options in
> recovery.conf. Some of them are specific to streaming replication
> (primary_conninfo), some are specific to PITR (recovery_target_*), some
> are common (restore_command, restore_end_command). We need a reference
> page to list them all.

We need a section, not a new chapter, if at all. A chapter on its own
for this makes no sense at all. The new section should either be in the
Backup, HA or Server Config chapters.

Please revert the change to create a new chapter.

--
Simon Riggs www.2ndQuadrant.com


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: [COMMITTERS] pgsql: Move documentation of all recovery.conf option to a new chapter.
Date: 2010-02-24 08:11:26
Message-ID: 603c8f071002240011t3151cc3q3e6e3ed3172b51d8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

On Wed, Feb 24, 2010 at 2:31 AM, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
> On Wed, 2010-02-24 at 08:30 +0200, Heikki Linnakangas wrote:
>> Simon Riggs wrote:
>> > On Mon, 2010-02-22 at 11:47 +0000, Heikki Linnakangas wrote:
>> >> Log Message:
>> >> -----------
>> >> Move documentation of all recovery.conf option to a new chapter.
>> >> They used to be scattered between the "backup and restore" and "streaming
>> >> replication" chapters.
>> >
>> > It's just taken me 15 minutes to locate the settings for
>> > primary_conninfo to better understand Stefan's recent post.
>> >
>> > The commit referred to here is an extremely bad change.
>> >
>> > If you intended this to be a heading within the "High Availability"
>> > chapter then I would agree. This is what I thought you had done.
>>
>> The idea was to have one chapter that describes all the options in
>> recovery.conf. Some of them are specific to streaming replication
>> (primary_conninfo), some are specific to PITR (recovery_target_*), some
>> are common (restore_command, restore_end_command). We need a reference
>> page to list them all.
>
> We need a section, not a new chapter, if at all. A chapter on its own
> for this makes no sense at all. The new section should either be in the
> Backup, HA or Server Config chapters.
>
> Please revert the change to create a new chapter.

Just to mention it, this change was discussed and apparently agreed to
5 days ago on hackers. That's not to say that it necessarily
shouldn't be reverted, but I think that will take some discussion (and
more than 1 vote).

Looking at it, I think I do agree that this shouldn't be a whole
chapter by itself. It's not nearly as high-level a concept as the
chapters that surround it. But I do think it's good to list all the
recovery.conf settings in one central place. The server config
chapter looks like the best fit to me on first glance, but I wonder
what others think?

...Robert


From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: [COMMITTERS] pgsql: Move documentation of all recovery.conf option to a new chapter.
Date: 2010-02-24 08:26:14
Message-ID: 1266999974.3752.5937.camel@ebony
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

On Wed, 2010-02-24 at 03:11 -0500, Robert Haas wrote:

> But I do think it's good to list all the
> recovery.conf settings in one central place.

That part is fine, as long as we have links to it from necessary places.

The reason why these docs must be within a related chapter is that it
then shows up on the chapter TOC, allowing you to quickly answer the
"where were the docs for that?" question. If you go back up to the main
TOC there are way too many other chapters to be able to see which one
you should go to, even if you are used to the manual.

--
Simon Riggs www.2ndQuadrant.com


From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Move documentation of all recovery.conf option to a new chapter.
Date: 2010-02-24 09:21:00
Message-ID: 1267003260.3752.6012.camel@ebony
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

On Wed, 2010-02-24 at 07:31 +0000, Simon Riggs wrote:

> Please revert the change to create a new chapter.

I will downgrade my request from a "revert" to the next rung down. Such
requests should be saved for the most serious matters.

Major change is necessary here; this change in particular is regrettably
a very bad one. Please reconsider and make substantial improvements.

--
Simon Riggs www.2ndQuadrant.com


From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: [COMMITTERS] pgsql: Move documentation of all recovery.conf option to a new chapter.
Date: 2010-02-24 09:59:29
Message-ID: 3f0b79eb1002240159p19e135f9i2097abbf29177f1f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

On Wed, Feb 24, 2010 at 5:11 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> Looking at it, I think I do agree that this shouldn't be a whole
> chapter by itself.  It's not nearly as high-level a concept as the
> chapters that surround it.  But I do think it's good to list all the
> recovery.conf settings in one central place.  The server config
> chapter looks like the best fit to me on first glance, but I wonder
> what others think?

Umm... how about the following layout (just merge the server config and
the recovery config)? Since the way to specify a parameter is different
from postgresql.conf and recovery.conf, the section "Server Parameters"
would be required in both.

18. Server Configuration
18.1. Server Parameters
18.1.1. Setting Parameters
18.1.2. File Locations
18.1.3. Connections and Authentication
<snip>
18.1.16. Short Options
18.2. Recovery Parameters
18.2.1. Setting Parameters
18.2.2. Archive Recovery
18.2.3. Recovery Target
18.2.4. Standby Server

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Move documentation of all recovery.conf option to a new chapter.
Date: 2010-02-24 17:30:03
Message-ID: 4B85621B.2070308@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Simon Riggs wrote:
> Major change is necessary here; this change in particular is regrettably
> a very bad one. Please reconsider and make substantial improvements.

Any suggestions?

Berkus suggested adding a new page to collect together reference
documentation of all the configuration files:

http://archives.postgresql.org/message-id/4B759C73.9050300@agliodbs.com

I actually tried doing that under the Reference book to see how it
looks, but I couldn't figure out the SGML required to do it. Could
someone else with better SGML skills take a look at it, please?

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com


From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Move documentation of all recovery.conf option to a new chapter.
Date: 2010-02-24 17:48:09
Message-ID: 1267033689.3752.6536.camel@ebony
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

On Wed, 2010-02-24 at 19:30 +0200, Heikki Linnakangas wrote:
> Simon Riggs wrote:
> > Major change is necessary here; this change in particular is regrettably
> > a very bad one. Please reconsider and make substantial improvements.
>
> Any suggestions?

A new section inside the HA chapter would be useful, so this is on the
same level as "Streaming Replication". So just drop everything down one
level.

There are 3 use cases: PITR, file-based replication and streaming
replication. Having 3 separate sections would be less confusing since it
would allow focused examples. A final section could be the "master
reference" for defining those parameters. So having both separate and
combined sections may end up being less confusing.

--
Simon Riggs www.2ndQuadrant.com


From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: [COMMITTERS] pgsql: Move documentation of all recovery.conf option to a new chapter.
Date: 2010-02-24 17:52:06
Message-ID: 1267033926.3752.6544.camel@ebony
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

On Wed, 2010-02-24 at 18:59 +0900, Fujii Masao wrote:
> On Wed, Feb 24, 2010 at 5:11 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> > Looking at it, I think I do agree that this shouldn't be a whole
> > chapter by itself. It's not nearly as high-level a concept as the
> > chapters that surround it. But I do think it's good to list all the
> > recovery.conf settings in one central place. The server config
> > chapter looks like the best fit to me on first glance, but I wonder
> > what others think?
>
> Umm... how about the following layout (just merge the server config and
> the recovery config)? Since the way to specify a parameter is different
> from postgresql.conf and recovery.conf, the section "Server Parameters"
> would be required in both.
>
> 18. Server Configuration
> 18.1. Server Parameters
> 18.1.1. Setting Parameters
> 18.1.2. File Locations
> 18.1.3. Connections and Authentication
> <snip>
> 18.1.16. Short Options
> 18.2. Recovery Parameters
> 18.2.1. Setting Parameters
> 18.2.2. Archive Recovery
> 18.2.3. Recovery Target
> 18.2.4. Standby Server

That would be OK too, but you'd need to add lots and lots of links to
ensure that each mention of the parameter goes to the definition.

--
Simon Riggs www.2ndQuadrant.com


From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Move documentation of all recovery.conf option to a new chapter.
Date: 2010-02-24 18:20:33
Message-ID: 4B856DF1.6030004@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Simon Riggs wrote:
> A new section inside the HA chapter would be useful, so this is on the
> same level as "Streaming Replication". So just drop everything down one
> level.

The problem with that is that the recovery.conf options are also
relevant to plain-old recovery from an archive. And PITR. So it doesn't
really belong under HA either.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: [COMMITTERS] pgsql: Move documentation of all recovery.conf option to a new chapter.
Date: 2010-02-24 18:50:57
Message-ID: 603c8f071002241050i5273d185y61023ee573cd37a8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

On Wed, Feb 24, 2010 at 1:20 PM, Heikki Linnakangas
<heikki(dot)linnakangas(at)enterprisedb(dot)com> wrote:
> Simon Riggs wrote:
>> A new section inside the HA chapter would be useful, so this is on the
>> same level as "Streaming Replication". So just drop everything down one
>> level.
>
> The problem with that is that the recovery.conf options are also
> relevant to plain-old recovery from an archive. And PITR. So it doesn't
> really belong under HA either.

Yeah, that was why I thought server configuration was better.

...Robert


From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Move documentation of all recovery.conf option to a new chapter.
Date: 2010-02-24 18:53:56
Message-ID: 1267037636.3752.6632.camel@ebony
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

On Wed, 2010-02-24 at 20:20 +0200, Heikki Linnakangas wrote:
> Simon Riggs wrote:
> > A new section inside the HA chapter would be useful, so this is on the
> > same level as "Streaming Replication". So just drop everything down one
> > level.
>
> The problem with that is that the recovery.conf options are also
> relevant to plain-old recovery from an archive. And PITR. So it doesn't
> really belong under HA either.

Which is why, in the next paragraph, I proposed a way forwards...

--
Simon Riggs www.2ndQuadrant.com


From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Move documentation of all recovery.conf option to a new chapter.
Date: 2010-02-24 19:03:07
Message-ID: 4B8577EB.8000802@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Simon Riggs wrote:
> Which is why, in the next paragraph, I proposed a way forwards...

Oh, sorry.

> There are 3 use cases: PITR, file-based replication and streaming
> replication. Having 3 separate sections would be less confusing since it
> would allow focused examples. A final section could be the "master
> reference" for defining those parameters. So having both separate and
> combined sections may end up being less confusing.

Isn't that pretty much what we have now, except that both file-based
replication and streaming replication are under the HA section? Can you
lay out a tree of the section titles you're suggesting?

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com