Minor improvement in lock.sgml

Поиск
Список
Период
Сортировка
Искать

Minor improvement in lock.sgml

От:
Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Дата:
Вложения:
Here is a patch to a bit improve the reference page for the LOCK
command.  I think it'd be better for the isolation level to be in
capitals and wrapped in the  tags.

Thanks,

Best regards,
Etsuro Fujita

Re: Minor improvement in lock.sgml

От:
Robert Haas <robertmhaas@gmail.com>
Дата:
On Tue, Sep 16, 2014 at 7:20 AM, Etsuro Fujita
 wrote:
> Here is a patch to a bit improve the reference page for the LOCK
> command.  I think it'd be better for the isolation level to be in
> capitals and wrapped in the  tags.

It's done that way elsewhere in the same page, so committed.

Overall, there is some ambiguity about this.  Most places follow your
proposed style if READ COMMITTED,
REPEATABLE READ, and
SERIALIZABLE, but mvcc.sgml, which discusses
isolation levels extensively, just writes them as Read Committed,
Repeatable Read, and Serializable.

I'm not sure whether more consistency overall would be a good thing -
there are some things to recommend the current mix of styles - but
mixing styles within a page doesn't seem smart, so this much at least
seems uncontroversial.

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


Re: Minor improvement in lock.sgml

От:
Alvaro Herrera <alvherre@2ndquadrant.com>
Дата:
Robert Haas wrote:
> On Tue, Sep 16, 2014 at 7:20 AM, Etsuro Fujita
>  wrote:
> > Here is a patch to a bit improve the reference page for the LOCK
> > command.  I think it'd be better for the isolation level to be in
> > capitals and wrapped in the  tags.
> 
> It's done that way elsewhere in the same page, so committed.
> 
> Overall, there is some ambiguity about this.  Most places follow your
> proposed style if READ COMMITTED,
> REPEATABLE READ, and
> SERIALIZABLE, but mvcc.sgml, which discusses
> isolation levels extensively, just writes them as Read Committed,
> Repeatable Read, and Serializable.

This use of initial capitals everywhere in the mvcc chapter looks
strange to me.  I would say that that text needs to use ,
like we do elsewhere for terms being explained; and subsequent usage of
the same terms would use them without any particular markup and in
lowercase.  For instance, one paragraph there would be:
     The SQL standard defines four levels of   transaction isolation.  The most strict is serializable</>,   which is defined by the standard in a paragraph which says that any   concurrent execution of a set of serializable transactions is guaranteed   to produce the same effect as running them one at a time in some order.   The other three levels are defined in terms of phenomena, resulting from   interaction between concurrent transactions, which must not occur at   each level.  The standard notes that due to the definition of   serializable, ...

and there's a later one that would look like
     In PostgreSQL, you can request any of the   four standard transaction isolation levels.  But internally, there are   only three distinct isolation levels, which correspond to the levels   read committed</>, repeatable read</>, and the   aforementioned serializable.  When you select the level read   uncommitted</> you really get read committed, and phantom reads are not possible   in the PostgreSQL implementation of repeatable   read, so ...

Maybe there's additional markup of the isolation level names to be had
in appearances other than the first, but I don't know what -- initial
capitals don't seem to cut it.  Maybe we should say "the level foo" as
appropriate (so the last line above would be "implementation of the
level repeatable read")

CLP$10

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


FAQ