Re: Support for Limit in Update, Insert...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Cristian Prieto" <cristian(at)clickdiario(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Support for Limit in Update, Insert...
Date: 2005-09-09 00:05:59
Message-ID: 26926.1126224359@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Cristian Prieto" <cristian(at)clickdiario(dot)com> writes:
> Would be any future support for limit in update/insert queries? so you =
> could do something like
> update table1 set col1=3Dvalue1 limit 1000;
> would update just the first 1000 rows in the table.

That seems like a spectacularly bad idea, considering that you could
have no guarantees about *which* 1000 rows get updated.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Cristian Prieto 2005-09-09 01:19:34 Re: Support for Limit in Update, Insert...
Previous Message Matthew Peter 2005-09-08 23:52:07 Re: back references using regex