Re: Timing of 'SELECT 1' - Mailing list pgsql-hackers

From Neil Conway
Subject Re: Timing of 'SELECT 1'
Date
Msg-id 874qswu04i.fsf@mailbox.samurai.com
Whole thread Raw
In response to Timing of 'SELECT 1'  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> 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_stats output isn't really too helpful -- if you can get
some gprof or oprofile output, we might have a better chance of seeing
if there is anything we can improve.

-Neil



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Timing of 'SELECT 1'
Next
From: Andreas Pflug
Date:
Subject: Re: PITR Functional Design v2 for 7.5