From: | Shelby Cain <alyandon(at)yahoo(dot)com> |
---|---|
To: | SCassidy(at)overlandstorage(dot)com, Csaba Nagy <nagy(at)ecircle-ag(dot)com> |
Cc: | Postgres general mailing list <pgsql-general(at)postgresql(dot)org>, pgsql-general-owner(at)postgresql(dot)org |
Subject: | Re: allow LIMIT in UPDATE and DELETE |
Date: | 2006-05-19 16:25:49 |
Message-ID: | 20060519162549.22224.qmail@web37210.mail.mud.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>----- Original Message ----
>From: SCassidy(at)overlandstorage(dot)com
>To: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
>Cc: Postgres general mailing list <pgsql-general(at)postgresql(dot)org>; >pgsql-general-owner(at)postgresql(dot)org
>Sent: Friday, May 19, 2006 10:43:43 AM
>Subject: Re: [GENERAL] allow LIMIT in UPDATE and DELETE
>
>Personally, I have never wanted a DELETE or UPDATE with LIMIT. The one
>time I did something similar in Oracle, I used partitions, and just dropped
>or truncated the partition containing the old data.
>
Yeah, that’s the proper way to handle the issue assuming that sufficient forethought was put into the design of the database. It becomes trivial to drop a partition part of your weekly/monthly maintenance.
Unfortunately, when dealing with legacy database systems that have grown in a very organic way over a span of 5-10 years you don't have much control over the schema and there is significant inertia present to leave things as they are. As an example, the DBA group at the client I'm currently working has their databases managed by IBM global services and they will push back on altering a table definition to use partitioning as it costs the organization money to have those changes put into production. Having a internal developer use a script to perform such maintenance as a batch process is considered "free" so you can guess how many such processes have been created over the years.
Regards,
Shelby Cain
From | Date | Subject | |
---|---|---|---|
Next Message | Csaba Nagy | 2006-05-19 16:46:42 | Re: allow LIMIT in UPDATE and DELETE |
Previous Message | Rafael Martinez | 2006-05-19 16:08:05 | Re: [GENERAL] Weird ..... (a=1 or a=2) <> (a=2 or a=1) |