Re: Timing of 'SELECT 1'

From: Neil Conway <neilc(at)samurai(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: Timing of 'SELECT 1'
Date: 2004-03-10 16:39:57
Message-ID: 874qswu04i.fsf@mailbox.samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-03-10 16:42:12 Re: Timing of 'SELECT 1'
Previous Message Andreas Pflug 2004-03-10 16:37:34 Re: PITR Functional Design v2 for 7.5