Is there a batch/bulk UPDATE syntax available?

From: "Gnanakumar" <gnanam(at)zoniac(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: Is there a batch/bulk UPDATE syntax available?
Date: 2011-02-03 12:00:08
Message-ID: 005b01cbc399$e8d99fa0$ba8cdee0$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

Is there a batch/bulk UPDATE query syntax available in PostgreSQL, similar
to multirow VALUES syntax available for INSERT?

INSERT Multirow VALUES syntax example:
INSERT INTO films (code, title, did, date_prod, kind) VALUES
('B6717', 'Tampopo', 110, '1985-02-10', 'Comedy'),
('HG120', 'The Dinner Game', 140, DEFAULT, 'Comedy');

There is a situation in my application, where I am performing lots and lots
of updates on individual rows. I am trying to figure out how to make the
updates faster.

Any other ideas/ways to make updates faster are highly appreciated.

Regards,
Gnanam

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Thomas Kellerer 2011-02-03 12:31:27 Re: Is there a batch/bulk UPDATE syntax available?
Previous Message Christian Ullrich 2011-02-03 09:34:14 Re: Select Command in Procedures