Re: MERGE Specification

From: Decibel! <decibel(at)decibel(dot)org>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, pgsql-hackers(at)postgresql(dot)org, Martijn van Oosterhout <kleptog(at)svana(dot)org>, Gregory Stark <stark(at)enterprisedb(dot)com>, "A(dot)M(dot)" <agentm(at)themactionfaction(dot)com>
Subject: Re: MERGE Specification
Date: 2008-04-25 12:45:15
Message-ID: 1F35D8AE-1B86-4E55-A075-002CC5326B71@decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Apr 25, 2008, at 3:28 AM, Simon Riggs wrote:
>> I recently came across the expression "YAGNI", and think it's
>> probably
>> pretty relevant to this discussion:
>> http://en.wikipedia.org/wiki/You_Ain't_Gonna_Need_It
>
> In matters of technical implementation, I follow you almost without
> question, and very happily so.
>
> I think all of us should be careful when expressing views on what
> other
> people need or don't need. We sleep soundly after having given such an
> opinion, but that doesn't make those opinions valid. I'm not sure if
> there is a pithy acronym for that thought.

Agreed. Many people on hackers don't actually deal with production
systems, so it's easy to look at things from an academic standpoint
and not a practical one. This is generally a Good Thing (I think
MySQL is an example of what happens when you don't do that), but it
does need to be balanced by real-world needs. And not all of those
needs are always well represented on the lists.

In this case, I have bulk-load code that could certainly use MERGE.
It's not that hard to write code that will handle this in a way
that's not safe from race conditions, so it's unlikely that we'll see
that many requests, but that doesn't mean a fast MERGE wouldn't be
useful. It certainly would have saved me some effort, and it would
probably out-perform the current code.
--
Decibel!, aka Jim C. Nasby, Database Architect decibel(at)decibel(dot)org
Give your computer some brain candy! www.distributed.net Team #1828

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2008-04-25 12:54:34 Re: MERGE Specification
Previous Message Simon Riggs 2008-04-25 12:17:24 Re: MERGE Specification