pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-general@postgresql.org
Subject: Re: conditional insert
Date: Thu, 8 Sep 2011 11:12:36 -0400
Message-ID: <20110908151235.GE38973@shinkuro.com> (raw)
In-Reply-To: <20110908143203.0C3AFB5DBCB@mail.postgresql.org>
References: <4E64A79E.7030503@compulab.co.il>
	<CADFuJLjfHUMEuYTPKgG6GtJMfzJeeq3-bkt162RywRVqc7OYgg@mail.gmail.com>
	<4E64AC45.6030704@rem.nl>
	<20110906190548.433E8B5DBD1@mail.postgresql.org>
	<CAHyXU0zSE4aVoZhXL9i8hnSjRaJwOpmcrV+jfLKKY=OCdXhR6A@mail.gmail.com>
	<CAHyXU0x3jMadwoZFW8S5+g04VjBGURNUnEYN4ZzhmAy5CQaTGw@mail.gmail.com>
	<4e679195.12848e0a.019e.ffff918eSMTPIN_ADDED@mx.google.com>
	<CAHyXU0w__hAwXRujM_JxF-4tg_hRYc4JCY_-_3DiyjzE2aYR+w@mail.gmail.com>
	<20110907200454.GV35347@shinkuro.com>
	<20110908143203.0C3AFB5DBCB@mail.postgresql.org>

On Thu, Sep 08, 2011 at 10:31:39PM +0800, Lincoln Yeoh wrote:
> 
> Doesn't catching the failure and retrying mean writing more code?

Well, yes.  OTOH, if you want to use "upsert" and you have to use
other database systems too, then you'll need that other code also,
since it's not standard.

There isn't an easy answer here.

A

-- 
Andrew Sullivan
ajs@crankycanuck.ca



view thread (36+ messages)  latest in thread

Message-ID: <20110908151235.GE38973@shinkuro.com>
Permalink:  ../20110908151235.GE38973@shinkuro.com/
Also on:    postgresql.org/message-id/20110908151235.GE38973@shinkuro.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 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-general@postgresql.org
  Cc: ajs@crankycanuck.ca
  Subject: Re: conditional insert
  In-Reply-To: <20110908151235.GE38973@shinkuro.com>
  References: <4E64A79E.7030503@compulab.co.il> <CADFuJLjfHUMEuYTPKgG6GtJMfzJeeq3-bkt162RywRVqc7OYgg@mail.gmail.com> <4E64AC45.6030704@rem.nl> <20110906190548.433E8B5DBD1@mail.postgresql.org> <CAHyXU0zSE4aVoZhXL9i8hnSjRaJwOpmcrV+jfLKKY=OCdXhR6A@mail.gmail.com> <CAHyXU0x3jMadwoZFW8S5+g04VjBGURNUnEYN4ZzhmAy5CQaTGw@mail.gmail.com> <4e679195.12848e0a.019e.ffff918eSMTPIN_ADDED@mx.google.com> <CAHyXU0w__hAwXRujM_JxF-4tg_hRYc4JCY_-_3DiyjzE2aYR+w@mail.gmail.com> <20110907200454.GV35347@shinkuro.com> <20110908143203.0C3AFB5DBCB@mail.postgresql.org> <20110908151235.GE38973@shinkuro.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