Re: updating records

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Gene Vital <genevital(at)karibe(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: updating records
Date: 2003-10-03 17:01:05
Message-ID: Pine.LNX.4.33.0310031058580.27472-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 3 Oct 2003, Gene Vital wrote:

> Hi all.
> I am using Visual FoxPro via ODBC to update records on a 7.3.4
> PostgreSql server and it appears that it always uses delete/insert
> instead of updating the current record. Can this be changed to update
> the existing record instead?

I'm not sure if you are saying that Foxpro is doing a delete / insert, or
that postgresql is doing one.

Every update in postgresql is, in fact, a delete / insert, with the delete
delayed until no more transactions are looking at that version of the row
and vacuum has been run.

So, if Visual Foxpro is in fact issuing a delete insert, it's likely no
great performance hit for postgresql, which would wind up doing the same
basic thing anyway.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2003-10-03 17:14:13 Re: Server recommendations
Previous Message Tom Lane 2003-10-03 16:50:25 Re: Slow SELECT