Tom Lane wrote:
> Peter Eisentraut <[EMAIL PROTECTED]> writes:
> > Tom Lane writes:
> >> BTW, EXPLAIN ANALYZE puts out
> >> Total runtime: 406.53 msec
> >> Do you want to make an exception to the string freeze to change this
> >> to "ms"?
> 
> > I just realized, all the things that are sent as a query result instead of
> > an error or notice are not gettext-enabled.  I guess we'll have to do
> > without that in this release.  So, making the above change does not pose a
> > problem.
> 
> Okay, I'll make that change.  Any opinions about the 2-vs-3-digit issue?

Here is the patch that makes psql \timing display three digits:

        test=> \timing
        Timing is on.
        test=> select 1;
         ?column?
        ----------
                1
        (1 row)
        
        Time: 1.306 ms

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  [EMAIL PROTECTED]               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
? psql
Index: common.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/bin/psql/common.c,v
retrieving revision 1.74
diff -c -c -r1.74 common.c
*** common.c    16 Sep 2003 17:59:02 -0000      1.74
--- common.c    5 Oct 2003 22:31:26 -0000
***************
*** 550,556 ****
  
        /* Possible microtiming output */
        if (pset.timing && success)
!               printf(gettext("Time: %.2f ms\n"), DIFF_MSEC(after, before));
  
        return success;
  }
--- 550,556 ----
  
        /* Possible microtiming output */
        if (pset.timing && success)
!               printf(gettext("Time: %.3f ms\n"), DIFF_MSEC(after, before));
  
        return success;
  }
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to