Re: Does update = delete + insert ?

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Does update = delete + insert ?
Date: 2010-05-26 18:50:16
Message-ID: 20100526185016.GA6757@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Gauthier, Dave <dave(dot)gauthier(at)intel(dot)com> wrote:

> Hi:
> Under the hood, does PG implement an update statement as a delete followed by
> an insert? I’m at a point in coding a script where it would be more

Yes, Update means delete the old record and create a new one.

Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Atkins 2010-05-26 19:04:54 Re: Does update = delete + insert ?
Previous Message Gauthier, Dave 2010-05-26 18:41:16 Does update = delete + insert ?