Re: [trivial patch] typo in doc/src/sgml/sepgsql.sgml

Lists: pgsql-hackers
From: Christoph Berg <cb(at)df7cb(dot)de>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: [trivial patch] typo in doc/src/sgml/sepgsql.sgml
Date: 2012-02-15 10:38:51
Message-ID: 20120215103850.GA8348@msgid.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

diff --git a/doc/src/sgml/sepgsql.sgml b/doc/src/sgml/sepgsql.sgml
index e45c258..ee0a255 100644
*** a/doc/src/sgml/sepgsql.sgml
--- b/doc/src/sgml/sepgsql.sgml
*************** UPDATE t1 SET x = 2, y = md5sum(y) WHERE
*** 358,364 ****
</synopsis>

In this case we must have <literal>db_table:select</> in addition to
! <literal>db_table:update</>, because <literal>t1.a</> is referenced
within the <literal>WHERE</> clause. Column-level permissions will also be
checked for each referenced column.
</para>
--- 358,364 ----
</synopsis>

In this case we must have <literal>db_table:select</> in addition to
! <literal>db_table:update</>, because <literal>t1.z</> is referenced
within the <literal>WHERE</> clause. Column-level permissions will also be
checked for each referenced column.
</para>

(It is unclear to me why the same example is cited twice here, but the
text around them is consistent with that.)

Christoph
--
cb(at)df7cb(dot)de | http://www.df7cb.de/


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Christoph Berg <cb(at)df7cb(dot)de>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [trivial patch] typo in doc/src/sgml/sepgsql.sgml
Date: 2012-02-15 14:59:50
Message-ID: CA+TgmoZjUtSzHpXwwzcm4kJjwH__1AdMO3KoSbbQ+fHSCqpAKA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Feb 15, 2012 at 5:38 AM, Christoph Berg <cb(at)df7cb(dot)de> wrote:
> diff --git a/doc/src/sgml/sepgsql.sgml b/doc/src/sgml/sepgsql.sgml
> index e45c258..ee0a255 100644
> *** a/doc/src/sgml/sepgsql.sgml
> --- b/doc/src/sgml/sepgsql.sgml
> *************** UPDATE t1 SET x = 2, y = md5sum(y) WHERE
> *** 358,364 ****
>  </synopsis>
>
>      In this case we must have <literal>db_table:select</> in addition to
> !     <literal>db_table:update</>, because <literal>t1.a</> is referenced
>      within the <literal>WHERE</> clause.  Column-level permissions will also be
>      checked for each referenced column.
>     </para>
> --- 358,364 ----
>  </synopsis>
>
>      In this case we must have <literal>db_table:select</> in addition to
> !     <literal>db_table:update</>, because <literal>t1.z</> is referenced
>      within the <literal>WHERE</> clause.  Column-level permissions will also be
>      checked for each referenced column.
>     </para>

Fixed, but note that I had to recreate the patch by manual
examination. Including it inline tends to garble things.

> (It is unclear to me why the same example is cited twice here, but the
> text around them is consistent with that.)

Fixed this too, and did some related rewording and proofreading.

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


From: Christoph Berg <cb(at)df7cb(dot)de>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [trivial patch] typo in doc/src/sgml/sepgsql.sgml
Date: 2012-02-15 15:16:52
Message-ID: 20120215151652.GB8348@msgid.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Re: Robert Haas 2012-02-15 <CA+TgmoZjUtSzHpXwwzcm4kJjwH__1AdMO3KoSbbQ+fHSCqpAKA(at)mail(dot)gmail(dot)com>
> Fixed, but note that I had to recreate the patch by manual
> examination. Including it inline tends to garble things.

Hmm, I thought I had :set paste and everything...

> > (It is unclear to me why the same example is cited twice here, but the
> > text around them is consistent with that.)
>
> Fixed this too, and did some related rewording and proofreading.

Makes much more sense now. Thanks!

Christoph
--
cb(at)df7cb(dot)de | http://www.df7cb.de/


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Christoph Berg <cb(at)df7cb(dot)de>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [trivial patch] typo in doc/src/sgml/sepgsql.sgml
Date: 2012-02-15 18:45:29
Message-ID: 1329331419-sup-8774@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


Excerpts from Christoph Berg's message of mié feb 15 12:16:52 -0300 2012:
> Re: Robert Haas 2012-02-15 <CA+TgmoZjUtSzHpXwwzcm4kJjwH__1AdMO3KoSbbQ+fHSCqpAKA(at)mail(dot)gmail(dot)com>
> > Fixed, but note that I had to recreate the patch by manual
> > examination. Including it inline tends to garble things.
>
> Hmm, I thought I had :set paste and everything...

If you copied from a pager, those tend to expand tabs to spaces, so the
patch gets mangled at that point. At least "less" does that. OTOH if
you :r the patch file, it works fine.

--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Christoph Berg <cb(at)df7cb(dot)de>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [trivial patch] typo in doc/src/sgml/sepgsql.sgml
Date: 2012-02-15 19:06:40
Message-ID: CA+TgmoajYZxCsuAMPWRFH3b3i3Ay+cBcjhu6xAy1nXWnpi3gPw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Feb 15, 2012 at 1:45 PM, Alvaro Herrera
<alvherre(at)commandprompt(dot)com> wrote:
> Excerpts from Christoph Berg's message of mié feb 15 12:16:52 -0300 2012:
>> Re: Robert Haas 2012-02-15 <CA+TgmoZjUtSzHpXwwzcm4kJjwH__1AdMO3KoSbbQ+fHSCqpAKA(at)mail(dot)gmail(dot)com>
>> > Fixed, but note that I had to recreate the patch by manual
>> > examination. Including it inline tends to garble things.
>>
>> Hmm, I thought I had :set paste and everything...
>
> If you copied from a pager, those tend to expand tabs to spaces, so the
> patch gets mangled at that point.  At least "less" does that.  OTOH if
> you :r the patch file, it works fine.

It is also possible that my email client is to blame. All I know for
sure is I had to regenerate the patch.

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


From: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Christoph Berg <cb(at)df7cb(dot)de>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [trivial patch] typo in doc/src/sgml/sepgsql.sgml
Date: 2012-02-16 18:57:39
Message-ID: m24nuqvc64.fsf@2ndQuadrant.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> If you copied from a pager, those tend to expand tabs to spaces, so the
> patch gets mangled at that point. At least "less" does that. OTOH if
> you :r the patch file, it works fine.

You should be able to add an “inline” attachment too, and the receiver
should then be able to both see it inline in the email and store it as a
file. Tom uses inline attachments a lot, and apparently very few MUA
are allowing both features on that (gnus is perfectly fine here).

Regards,
--
Dimitri Fontaine
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support