pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard van den Berg <richard.vandenberg@trust-factory.com>
To: PFC <lists@boutiquenumerique.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Foreign key slows down copy/insert
Date: Fri, 15 Apr 2005 13:22:43 +0200
Message-ID: <425FA403.9030007@trust-factory.com> (raw)
In-Reply-To: <op.so9q4exeth1vuj@localhost>
References: <425E6045.4060201@trust-factory.com>
	<op.so8fvhlwth1vuj@localhost>
	<425F77E4.7030504@trust-factory.com>
	<op.so9q4exeth1vuj@localhost>

PFC wrote:
>     94 ms for an index scan ?
>     this look really slow...

That seems to be network latency. My psql client is connecting over 
ethernet to the database server. Retrying the command gives very 
different values, as low as 20ms. That 94ms was the highest I've seen. 
Running the same command locally (via a Unix socket) yields 2.5 ms every 
time.

Am I correct is assuming that the timings are calculated locally by psql 
on my client, thus including network latency?

-- 
Richard van den Berg, CISSP
-------------------------------------------
Trust Factory B.V. |     www.dna-portal.net
Bazarstraat 44a    |  www.trust-factory.com
2518AK The Hague   |  Phone: +31 70 3620684
The Netherlands    |  Fax  : +31 70 3603009
-------------------------------------------



view thread (24+ messages)  latest in thread

Message-ID: <425FA403.9030007@trust-factory.com>
Permalink:  ../425FA403.9030007@trust-factory.com/
Also on:    postgresql.org/message-id/425FA403.9030007@trust-factory.com

 · 

reply

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: richard.vandenberg@trust-factory.com, lists@boutiquenumerique.com
  Subject: Re: Foreign key slows down copy/insert
  In-Reply-To: <425FA403.9030007@trust-factory.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