libpq documentation cleanups (repost 3)

Lists: pgsql-hackers
From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Cc: Leslie S Satenstein <lsatenstein(at)yahoo(dot)com>
Subject: libpq documentation cleanups (repost 3)
Date: 2011-01-12 16:53:04
Message-ID: 201101121653.p0CGr4l29257@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

The attached patch is a collection of libpq documentation cleanups
recommended in a list of changes emailed to me by Leslie S Satenstein.

Leslie found a number of places our libpq documentation that were unclear
or awkward, and this diff generated by me attempts to address them.

I have already updated the documentation proofreading wiki:

http://wiki.postgresql.org/wiki/Documentation_Proofreading

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

Attachment Content-Type Size
/pgpatches/libpq.gz application/x-gzip 6.3 KB

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Leslie S Satenstein <lsatenstein(at)yahoo(dot)com>
Subject: Re: libpq documentation cleanups (repost 3)
Date: 2011-01-12 17:04:40
Message-ID: AANLkTi=KS+8ojW7RSTvrmRMeMzoREcxrspyXtaiKCnzZ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Jan 12, 2011 at 11:53 AM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> The attached patch is a collection of libpq documentation cleanups
> recommended in a list of changes emailed to me by Leslie S Satenstein.
>
> Leslie found a number of places our libpq documentation that were unclear
> or awkward, and this diff generated by me attempts to address them.
>
> I have already updated the documentation proofreading wiki:
>
>        http://wiki.postgresql.org/wiki/Documentation_Proofreading

I don't think changing "see below" to "refer below" or "call" to
"execute" is an improvement; even if we did that uniformly throughout
our documentation, surely future editors are going to reuse those
phrasings.

A lot of these other changes look pretty dubious too, although some
seem worthwhile.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


From: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Leslie S Satenstein <lsatenstein(at)yahoo(dot)com>
Subject: Re: libpq documentation cleanups (repost 3)
Date: 2011-01-12 17:25:53
Message-ID: AANLkTinQV=pBocT-Uf+8t2uAgAWsbshZOW8SvcQds1v+@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

2011/1/12 Robert Haas <robertmhaas(at)gmail(dot)com>

> On Wed, Jan 12, 2011 at 11:53 AM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> > The attached patch is a collection of libpq documentation cleanups
> > recommended in a list of changes emailed to me by Leslie S Satenstein.
> >
> > Leslie found a number of places our libpq documentation that were unclear
> > or awkward, and this diff generated by me attempts to address them.
> >
> > I have already updated the documentation proofreading wiki:
> >
> > http://wiki.postgresql.org/wiki/Documentation_Proofreading
>
> I don't think changing "see below" to "refer below" or "call" to
> "execute" is an improvement; even if we did that uniformly throughout
> our documentation, surely future editors are going to reuse those
> phrasings.
>
> A lot of these other changes look pretty dubious too, although some
> seem worthwhile.
>
I propose to change "backend server" to "backend" or "server.
Robert, you mentioned that "backend server" phrase is suggest
interchangeability of "backend" or "server" but there is no term
"backend server".

>
> --
> Robert Haas
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>

--
// Dmitriy.


From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Leslie S Satenstein <lsatenstein(at)yahoo(dot)com>
Subject: Re: libpq documentation cleanups (repost 3)
Date: 2011-01-12 17:46:40
Message-ID: 201101121746.p0CHkeI12307@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert Haas wrote:
> On Wed, Jan 12, 2011 at 11:53 AM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> > The attached patch is a collection of libpq documentation cleanups
> > recommended in a list of changes emailed to me by Leslie S Satenstein.
> >
> > Leslie found a number of places our libpq documentation that were unclear
> > or awkward, and this diff generated by me attempts to address them.
> >
> > I have already updated the documentation proofreading wiki:
> >
> > ? ? ? ?http://wiki.postgresql.org/wiki/Documentation_Proofreading
>
> I don't think changing "see below" to "refer below" or "call" to
> "execute" is an improvement; even if we did that uniformly throughout
> our documentation, surely future editors are going to reuse those
> phrasings.
>
> A lot of these other changes look pretty dubious too, although some
> seem worthwhile.

OK, that last part seems kind of vague. ;-) Can you hack up the diff
to have just the changes you think are worthwhile? You can just remove
the parts of the diff you don't like.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +


From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Leslie S Satenstein <lsatenstein(at)yahoo(dot)com>
Subject: Re: libpq documentation cleanups (repost 3)
Date: 2011-01-12 18:12:48
Message-ID: 201101121812.p0CICm021975@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Bruce Momjian wrote:
> Robert Haas wrote:
> > On Wed, Jan 12, 2011 at 11:53 AM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> > > The attached patch is a collection of libpq documentation cleanups
> > > recommended in a list of changes emailed to me by Leslie S Satenstein.
> > >
> > > Leslie found a number of places our libpq documentation that were unclear
> > > or awkward, and this diff generated by me attempts to address them.
> > >
> > > I have already updated the documentation proofreading wiki:
> > >
> > > ? ? ? ?http://wiki.postgresql.org/wiki/Documentation_Proofreading
> >
> > I don't think changing "see below" to "refer below" or "call" to
> > "execute" is an improvement; even if we did that uniformly throughout
> > our documentation, surely future editors are going to reuse those
> > phrasings.
> >
> > A lot of these other changes look pretty dubious too, although some
> > seem worthwhile.
>
> OK, that last part seems kind of vague. ;-) Can you hack up the diff
> to have just the changes you think are worthwhile? You can just remove
> the parts of the diff you don't like.

Robert, here is a unified diff, which I think it easier to review for
single-line documention changes.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

Attachment Content-Type Size
/pgpatches/libpq.gz application/x-gzip 5.9 KB

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Leslie S Satenstein <lsatenstein(at)yahoo(dot)com>
Subject: Re: libpq documentation cleanups (repost 3)
Date: 2011-01-12 18:59:17
Message-ID: AANLkTi=yqxO5Y1YxWCSFKtHnF_q8Nw6ZQZTit_YrpLFU@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Jan 12, 2011 at 1:12 PM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
>> OK, that last part seems kind of vague.  ;-)  Can you hack up the diff
>> to have just the changes you think are worthwhile?  You can just remove
>> the parts of the diff you don't like.
>
> Robert, here is a unified diff, which I think it easier to review for
> single-line documention changes.

Here are the parts that seem like improvements to me.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment Content-Type Size
libpq-docs.patch application/octet-stream 4.9 KB

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Leslie S Satenstein <lsatenstein(at)yahoo(dot)com>
Subject: Re: libpq documentation cleanups (repost 3)
Date: 2011-01-12 21:05:12
Message-ID: 1294866312.6322.0.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On ons, 2011-01-12 at 12:04 -0500, Robert Haas wrote:
> On Wed, Jan 12, 2011 at 11:53 AM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> > The attached patch is a collection of libpq documentation cleanups
> > recommended in a list of changes emailed to me by Leslie S Satenstein.
> >
> > Leslie found a number of places our libpq documentation that were unclear
> > or awkward, and this diff generated by me attempts to address them.
> >
> > I have already updated the documentation proofreading wiki:
> >
> > http://wiki.postgresql.org/wiki/Documentation_Proofreading
>
> I don't think changing "see below" to "refer below" or "call" to
> "execute" is an improvement; even if we did that uniformly throughout
> our documentation, surely future editors are going to reuse those
> phrasings.

Agreed.

> A lot of these other changes look pretty dubious too, although some
> seem worthwhile.

Agreed. :-/


From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Leslie S Satenstein <lsatenstein(at)yahoo(dot)com>
Subject: Re: libpq documentation cleanups (repost 3)
Date: 2011-01-13 01:54:08
Message-ID: 201101130154.p0D1s8127606@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert Haas wrote:
> On Wed, Jan 12, 2011 at 1:12 PM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> >> OK, that last part seems kind of vague. ?;-) ?Can you hack up the diff
> >> to have just the changes you think are worthwhile? ?You can just remove
> >> the parts of the diff you don't like.
> >
> > Robert, here is a unified diff, which I think it easier to review for
> > single-line documention changes.
>
> Here are the parts that seem like improvements to me.

Applied.

I am also attaching a few more of Leslie's changes that I think are
useful. The first clarifies a confusion Leslie had about the fact that
"return" is referencing the return value of the function and not the
value returned in the pointer.

The second change is, I think, better wording.

The third moves the "deprecated" text to the start of the function
description. Leslie pointed out that that is how we do it for other
libpq functions, so we should move it for consistency.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

Attachment Content-Type Size
/pgpatches/libpq_v2 text/x-diff 1.8 KB

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Leslie S Satenstein <lsatenstein(at)yahoo(dot)com>
Subject: Re: libpq documentation cleanups (repost 3)
Date: 2011-01-13 10:59:47
Message-ID: AANLkTinsRTq92ZNWjYi9y1_3grjk9mqdu+s=S9+H7b0e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Jan 12, 2011 at 8:54 PM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> I am also attaching a few more of Leslie's changes that I think are
> useful.  The first clarifies a confusion Leslie had about the fact that
> "return" is referencing the return value of the function and not the
> value returned in the pointer.

Hmm. Well, if that's the confusion, I don't think inserting the words
"by the function" is the right way to fix it - it certainly isn't
returned by anything else. You could change it to say "It is also
possible for *errmsg to be NULL even when the return value is also
NULL; this indicates..."

> The second change is, I think, better wording.

OK.

> The third moves the "deprecated" text to the start of the function
> description.  Leslie pointed out that that is how we do it for other
> libpq functions, so we should move it for consistency.

That seems to me to read pretty awkwardly. You could perhaps strike
the chunk and the whole first paragraph and simply write "PQoidStatus
is an older, deprecated version of PQoidValue. It returns its result
as a character string rather than an Oid, and is not thread-safe." and
then cut directly to the synopsis. That would be consistent with what
we've done elsewhere; moving just that one sentence is not.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Leslie S Satenstein <lsatenstein(at)yahoo(dot)com>
Subject: Re: libpq documentation cleanups (repost 3)
Date: 2011-01-13 17:09:09
Message-ID: 201101131709.p0DH99P14490@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert Haas wrote:
> On Wed, Jan 12, 2011 at 8:54 PM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> > I am also attaching a few more of Leslie's changes that I think are
> > useful. ?The first clarifies a confusion Leslie had about the fact that
> > "return" is referencing the return value of the function and not the
> > value returned in the pointer.
>
> Hmm. Well, if that's the confusion, I don't think inserting the words
> "by the function" is the right way to fix it - it certainly isn't
> returned by anything else. You could change it to say "It is also
> possible for *errmsg to be NULL even when the return value is also
> NULL; this indicates..."
>
> > The second change is, I think, better wording.
>
> OK.
>
> > The third moves the "deprecated" text to the start of the function
> > description. ?Leslie pointed out that that is how we do it for other
> > libpq functions, so we should move it for consistency.
>
> That seems to me to read pretty awkwardly. You could perhaps strike
> the chunk and the whole first paragraph and simply write "PQoidStatus
> is an older, deprecated version of PQoidValue. It returns its result
> as a character string rather than an Oid, and is not thread-safe." and
> then cut directly to the synopsis. That would be consistent with what
> we've done elsewhere; moving just that one sentence is not.

OK, I have made the adjustments you mentioned with my own wording
(attached and applied). Let me know of any more needed adjustments.
Thanks.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

Attachment Content-Type Size
/pgpatches/libpq_v2 text/x-diff 2.2 KB