Re: execute transaction / insert rows

From: Andrew Sullivan <andrew(at)libertyrms(dot)info>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: execute transaction / insert rows
Date: 2002-10-01 20:07:44
Message-ID: 20021001160744.F25671@mail.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Oct 01, 2002 at 02:46:54PM -0400, Johnson, Shaunn wrote:
> [pseudo code]
>
> begin
> update table
> set col = new
> from old_table
> where new = better
> set transaction = 1000 records (* no clue on this part! *)
> commit 1000;
> end
>
> [/code]
>
> --any suggestions?

Yes, but only the one I already made: use some kind of external
interface. You can't do this directly in SQL in any reasonably-easy
way I can think of. The problem is more or less that SQL is not
intended to be used for the sort of process control you're thinking
of.

A

--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew(at)libertyrms(dot)info> M2P 2A8
+1 416 646 3304 x110

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bill 2002-10-01 20:51:07 Design Tools
Previous Message Bruce Momjian 2002-10-01 19:19:58 Re: cluster replication with intermezzo