Re: [HACKERS] Timing of 'SELECT 1'

2004-03-13 Thread Bruce Momjian
Merlin Moncure wrote: > > > The problem with gprof is that I am going to see all the backend > startup > > > stuff too, no? Is there a way to get a dump just the run of the > query? > > > > I was sort of lurking on this thread, waiting to see what became of > it. > > Did > > nobody actually come

Re: [HACKERS] Timing of 'SELECT 1'

2004-03-12 Thread Merlin Moncure
> > The problem with gprof is that I am going to see all the backend startup > > stuff too, no? Is there a way to get a dump just the run of the query? > > I was sort of lurking on this thread, waiting to see what became of it. > Did > nobody actually come to a conclusion on what that "last msec"

Re: [HACKERS] Timing of 'SELECT 1'

2004-03-12 Thread Alex J. Avriette
On Wed, Mar 10, 2004 at 11:43:48AM -0500, Bruce Momjian wrote: > The problem with gprof is that I am going to see all the backend startup > stuff too, no? Is there a way to get a dump just the run of the query? I was sort of lurking on this thread, waiting to see what became of it. Did nobody ac

Re: [HACKERS] Timing of 'SELECT 1'

2004-03-10 Thread Tom Lane
Kurt Roeckx <[EMAIL PROTECTED]> writes: > If I do a query on localhost with lots of data, I get a small > time in the log, if I do it over a slow link the time get higher. > It changes from 1 second to 2 minutes or something. > So I think it's until the client has received the data. It'll at leas

Re: [HACKERS] Timing of 'SELECT 1'

2004-03-10 Thread Hannu Krosing
Merlin Moncure kirjutas K, 10.03.2004 kell 17:00: > Bruce Momjian wrote: > > I am timing small queries, and found that a PREPARE/EXECUTE of "SELECT > > 1" takes about 1.2ms on my machine. A normal SELECT doesn't take much > > longer, so I am wondering why a simpler query isn't faster. > > > > Loo

Re: [HACKERS] Timing of 'SELECT 1'

2004-03-10 Thread Bruce Momjian
Andreas Pflug wrote: > Bruce Momjian wrote: > > >>There seems to be a 'PostgreSQL ping' time of about 1-2 ms in best case > >>conditions which limits the amount of queries you can fire off in 1 > >>second, no matter how simple. In certain rare cases this is something > >>of a bottleneck. In my p

Re: [HACKERS] Timing of 'SELECT 1'

2004-03-10 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > I am timing small queries, and found that a PREPARE/EXECUTE of "SELECT > > 1" takes about 1.2ms on my machine. A normal SELECT doesn't take much > > longer, so I am wondering why a simpler query isn't faster. > > Define "normal SELEC

Re: [HACKERS] Timing of 'SELECT 1'

2004-03-10 Thread Bruce Momjian
Merlin Moncure wrote: > Bruce Momjian wrote: > > I am timing small queries, and found that a PREPARE/EXECUTE of "SELECT > > 1" takes about 1.2ms on my machine. A normal SELECT doesn't take much > > longer, so I am wondering why a simpler query isn't faster. > > > > Looking at log_executor_stats,

Re: [HACKERS] Timing of 'SELECT 1'

2004-03-10 Thread Bruce Momjian
Neil Conway wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > I am timing small queries, and found that a PREPARE/EXECUTE of > > "SELECT 1" takes about 1.2ms on my machine. A normal SELECT doesn't > > take much longer, so I am wondering why a simpler query isn't > > faster. > > log_executor_

Re: [HACKERS] Timing of 'SELECT 1'

2004-03-10 Thread Merlin Moncure
Bruce Momjian wrote: > I am timing small queries, and found that a PREPARE/EXECUTE of "SELECT > 1" takes about 1.2ms on my machine. A normal SELECT doesn't take much > longer, so I am wondering why a simpler query isn't faster. > > Looking at log_executor_stats, I see the following. Execute show

Re: [HACKERS] Timing of 'SELECT 1'

2004-03-09 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > I am timing small queries, and found that a PREPARE/EXECUTE of "SELECT > 1" takes about 1.2ms on my machine. A normal SELECT doesn't take much > longer, so I am wondering why a simpler query isn't faster. Define "normal SELECT". I can think of plenty o

[HACKERS] Timing of 'SELECT 1'

2004-03-09 Thread Bruce Momjian
I am timing small queries, and found that a PREPARE/EXECUTE of "SELECT 1" takes about 1.2ms on my machine. A normal SELECT doesn't take much longer, so I am wondering why a simpler query isn't faster. Looking at log_executor_stats, I see the following. Execute shows nothing taking much time, mos