pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: ischamay.andbergsay@activestateway.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Data Warehouse Reevaluation - MySQL vs Postgres --
Date: Thu, 16 Sep 2004 12:29:04 +0800
Message-ID: <41491690.6030901@familyhealth.com.au> (raw)
In-Reply-To: <gIK1d.26646$XP3.14809@edtnps84>
References: <20040912042442.49915.qmail@web41508.mail.yahoo.com>
	<pB21d.193816$X12.122954@edtnps84>
	<20040914141452.002e5d4e@kingfisher.intern.logi-track.com>
	<20040914143303.GR21419@ns.snowman.net>
	<gIK1d.26646$XP3.14809@edtnps84>

>> insert into X
>>   select a.keyA,
>>          a.keyB,
>>      a.colA,
>>      a.colB
>>   from Y a left join X b
>>        using (keyA, keyB)
>>   where b.keyA is NULL and
>>         b.keyB is NULL;
>>
>> With the appropriate indexes, this is pretty fast but I think a merge
>> would be much faster.

Problem is it's subject to race conditions if another process is 
inserting stuff at the same time...

Chris



view thread (52+ messages)  latest in thread

Message-ID: <41491690.6030901@familyhealth.com.au>
Permalink:  ../41491690.6030901@familyhealth.com.au/
Also on:    postgresql.org/message-id/41491690.6030901@familyhealth.com.au

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: chriskl@familyhealth.com.au, ischamay.andbergsay@activestateway.com
  Subject: Re: Data Warehouse Reevaluation - MySQL vs Postgres --
  In-Reply-To: <41491690.6030901@familyhealth.com.au>
  References: <20040912042442.49915.qmail@web41508.mail.yahoo.com> <pB21d.193816$X12.122954@edtnps84> <20040914141452.002e5d4e@kingfisher.intern.logi-track.com> <20040914143303.GR21419@ns.snowman.net> <gIK1d.26646$XP3.14809@edtnps84> <41491690.6030901@familyhealth.com.au>

* 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