From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Greg Sabino Mullane <greg(at)turnstep(dot)com> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Microtiming patch for psql (reprise) |
Date: | 2001-11-30 19:25:05 |
Message-ID: | 200111301925.fAUJP5427518@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
I have added it to the 7.3 queue:
http://candle.pha.pa.us/cgi-bin/pgpatches2
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Due to a renewed interest in this patch, I've written a
> version to patch against 7.2b3. It adds a timing to every
> successful query in psql, and is toggled with
> backslash-m. It defaults to "off", so there are no
> visible changes (newlines added for readablity):
>
> data=# UPDATE foobar SET spin=1 WHERE cat = 'alive';
> UPDATE 42
>
> data=# \m
> Microsecond timing is on.
>
> data=# UPDATE foobar SET spin=0 WHERE cat = 'alive';
> UPDATE 42
> TOTAL TIME: 0.000912
>
> data=# CREATE index raul ON foobar(cat);
> CREATE
> TOTAL TIME: 0.010817
>
> data=# SELECT COUNT(cat) FROM foobar WHERE spin IN (1,2,42);
> count
> - -------
> 91291
> (1 row)
>
> TOTAL TIME: 0.312139
>
> data=# VACUUM;
> VACUUM
> TOTAL TIME: 1.469661
>
>
>
> Greg Sabino Mullane
> greg(at)turnstep(dot)com
> PGP Key: 0x14964AC8 200111281326
>
> -----BEGIN PGP SIGNATURE-----
> Comment: http://www.turnstep.com/pgp.html
>
> iQA/AwUBPAUtvLybkGcUlkrIEQLSPACg7k5jWTuZio3tp5JDarf89kDL66sAnijX
> bEhY6y1gpjViDEp5/uqaNsf2
> =PqE4
> -----END PGP SIGNATURE-----
>
[ Attachment, skipping... ]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2001-12-02 11:42:14 | Re: Microtiming patch for psql (reprise) |
Previous Message | Bruce Momjian | 2001-11-30 17:39:25 | Re: again pgcrypto |