hi,

> On men, 2011-08-22 at 04:09 +0000, YAMAMOTO Takashi wrote:
>> i know that postgresql uses ts=4 for C source code.
>> but how about documatation?
> 
> I'd say ideally don't use any tabs at all.

i agree.

> 
>> src/backend/access/transam/README seems to have both of
>> ts=4 and ts=8 mixed.
> 
> It appears to be geared for ts=4.  Could you send a patch or other
> indication for what you think needs changing?

attached.

YAMAMOTO Takashi

> 
> 
> -- 
> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
diff --git a/src/backend/access/transam/README 
b/src/backend/access/transam/README
index eaac139..e866d9e 100644
--- a/src/backend/access/transam/README
+++ b/src/backend/access/transam/README
@@ -61,23 +61,23 @@ sequence:
 
         /      StartTransactionCommand;
        /               StartTransaction;
-1) <           ProcessUtility;                         << BEGIN
+1) <   ProcessUtility;                         << BEGIN
        \               BeginTransactionBlock;
         \      CommitTransactionCommand;
 
        /       StartTransactionCommand;
-2) /           ProcessQuery;                           << SELECT ...
-   \           CommitTransactionCommand;
+2) /   ProcessQuery;                           << SELECT ...
+   \   CommitTransactionCommand;
        \               CommandCounterIncrement;
 
        /       StartTransactionCommand;
-3) /           ProcessQuery;                           << INSERT ...
-   \           CommitTransactionCommand;
+3) /   ProcessQuery;                           << INSERT ...
+   \   CommitTransactionCommand;
        \               CommandCounterIncrement;
 
         /      StartTransactionCommand;
        /       ProcessUtility;                         << COMMIT
-4) <                   EndTransactionBlock;
+4) <           EndTransactionBlock;
        \       CommitTransactionCommand;
         \              CommitTransaction;
 
@@ -100,9 +100,9 @@ Transaction aborts can occur in two ways:
 The reason we have to distinguish them is illustrated by the following two
 situations:
 
-       case 1                                  case 2
-       ------                                  ------
-1) user types BEGIN                    1) user types BEGIN
+       case 1                                          case 2
+       ------                                          ------
+1) user types BEGIN                            1) user types BEGIN
 2) user does something                 2) user does something
 3) user does not like what             3) system aborts for some reason
    she sees and types ABORT               (syntax error, etc)
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to