From: | Dmitriy Igrishin <dmitigr(at)gmail(dot)com> |
---|---|
To: | Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov> |
Cc: | Mario Weilguni <roadrunner6(at)gmx(dot)at>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: DELETE with LIMIT (or my first hack) |
Date: | 2010-12-01 18:08:49 |
Message-ID: | AANLkTimFLZpDp_gLHqkK117e-UfTVkY0veaqNiKBALED@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hey,
I don't clearly understand why anybody should perform DELETE
directly from a psql terminal on a production system. WHY ?
I can't understand what problem with DELETE without WHERE clause
for application developers and why DBMS should "protect" them
from DELETE FROM table.
PS. Anybody can perform rm -rf from the shell as root. So what ?..
2010/12/1 Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
> Mario Weilguni <roadrunner6(at)gmx(dot)at> wrote:
>
> > Is it really up to the database to decide what queries are ok?
> > It's the task of the developers to test their applikations.
>
> We're talking about ad hoc queries here, entered directly through
> psql or similar.
>
> -Kevin
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>
--
// Dmitriy.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-12-01 18:09:05 | Re: We really ought to do something about O_DIRECT and data=journalled on ext4 |
Previous Message | Josh Berkus | 2010-12-01 18:07:11 | Re: DELETE with LIMIT (or my first hack) |