From: Greg Stark <gsstark@mit.edu>
To: Dave Held <dave.held@arrayservicesgrp.com>
Cc: Greg Stark <gsstark@mit.edu>
Cc: John A Meinel <john@arbash-meinel.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Magnus Hagander <mha@sollentuna.net>
Cc: Ken Egervari <ken@upfactor.com>
Cc: pgsql-performance@postgresql.org
Cc: pgsql-hackers-win32@postgresql.org
Subject: Re: [PERFORM] Help with tuning this query (with
Date: 07 Mar 2005 18:15:29 -0500
Message-ID: <87br9v9hf2.fsf@stark.xeocode.com> (raw)
In-Reply-To: <49E94D0CFCD4DB43AFBA928DDD20C8F90261846A@asg002.asg.local>
References: <49E94D0CFCD4DB43AFBA928DDD20C8F90261846A@asg002.asg.local>
"Dave Held" <dave.held@arrayservicesgrp.com> writes:
> > What would be really neato would be to use the rtdsc (sp?) or
> > equivalent assembly instruction where available. Most processors
> > provide such a thing and it would give much lower overhead and much
> > more accurate answers.
> >
> > The main problem I see with this would be on multi-processor
> > machines. (QueryPerformanceCounter does work properly on
> > multi-processor machines, right?)
>
> I believe QueryPerformanceCounter() already does this.
This would be a good example of why selectively quoting the part of the
message to which you're responding to is more useful than just blindly echoing
my message back to me.
Already does what?
Use rtdsc? In which case using it would be a mistake. Since rtdsc doesn't work
across processors. And using it via QueryPerformanceCounter would be a
non-portable approach to using rtdsc. Much better to devise a portable
approach that works on any architecture where something equivalent is
available.
Or already works on multi-processor machines? In which case, uh, ok.
--
greg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: gsstark@mit.edu, dave.held@arrayservicesgrp.com, john@arbash-meinel.com, tgl@sss.pgh.pa.us, mha@sollentuna.net, ken@upfactor.com, pgsql-hackers-win32@postgresql.org
Subject: Re: [PERFORM] Help with tuning this query (with
In-Reply-To: <87br9v9hf2.fsf@stark.xeocode.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox