pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedDROP TABLE in transaction
4+ messages / 3 participants
[nested] [flat]
* DROP TABLE in transaction
@ 2001-04-12 18:32 David Olbersen <dave@slickness.org>
2001-04-12 19:33 ` Re: DROP TABLE in transaction Peter Eisentraut <peter_e@gmx.net>
0 siblings, 1 reply; 4+ messages in thread
From: David Olbersen @ 2001-04-12 18:32 UTC (permalink / raw)
To: pgsql-sql
Hello.
I was wondering if anybody could explain to me why I can't roll back dropping a
table. I would think that of all the events that should be rollback-able,
dropping a table would be the first on the list.
-- Dave
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: DROP TABLE in transaction
2001-04-12 18:32 DROP TABLE in transaction David Olbersen <dave@slickness.org>
@ 2001-04-12 19:33 ` Peter Eisentraut <peter_e@gmx.net>
2001-04-12 19:18 ` Re: DROP TABLE in transaction David Olbersen <dave@slickness.org>
0 siblings, 1 reply; 4+ messages in thread
From: Peter Eisentraut @ 2001-04-12 19:33 UTC (permalink / raw)
To: David Olbersen <dave@slickness.org>; +Cc: pgsql-sql
David Olbersen writes:
> I was wondering if anybody could explain to me why I can't roll back dropping a
> table.
Because DROP TABLE removes the table file on disk, and you can't roll back
that. Actually, in 7.1 you can. ;-)
> I would think that of all the events that should be rollback-able,
> dropping a table would be the first on the list.
Naah. Insert and update are first. ;-)
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: DROP TABLE in transaction
2001-04-12 18:32 DROP TABLE in transaction David Olbersen <dave@slickness.org>
2001-04-12 19:33 ` Re: DROP TABLE in transaction Peter Eisentraut <peter_e@gmx.net>
@ 2001-04-12 19:18 ` David Olbersen <dave@slickness.org>
2001-04-12 21:23 ` Re: DROP TABLE in transaction Joel Burton <jburton@scw.org>
0 siblings, 1 reply; 4+ messages in thread
From: David Olbersen @ 2001-04-12 19:18 UTC (permalink / raw)
To: Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-sql
On Thu, 12 Apr 2001, Peter Eisentraut wrote:
> Because DROP TABLE removes the table file on disk, and you can't roll back
> that. Actually, in 7.1 you can. ;-)
Well I understand that it's being taken from the disk, but why does that action
have to be done *right now*?
Why can't it be postponed until I type 'commit;' ?
I wonder how much time this addition would have saved those of us who type
quickly and use the tab-completion too much :)
-- Dave
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: DROP TABLE in transaction
2001-04-12 18:32 DROP TABLE in transaction David Olbersen <dave@slickness.org>
2001-04-12 19:33 ` Re: DROP TABLE in transaction Peter Eisentraut <peter_e@gmx.net>
2001-04-12 19:18 ` Re: DROP TABLE in transaction David Olbersen <dave@slickness.org>
@ 2001-04-12 21:23 ` Joel Burton <jburton@scw.org>
0 siblings, 0 replies; 4+ messages in thread
From: Joel Burton @ 2001-04-12 21:23 UTC (permalink / raw)
To: David Olbersen <dave@slickness.org>; +Cc: Peter Eisentraut <peter_e@gmx.net>; pgsql-sql
On Thu, 12 Apr 2001, David Olbersen wrote:
> On Thu, 12 Apr 2001, Peter Eisentraut wrote:
>
> > Because DROP TABLE removes the table file on disk, and you can't roll back
> > that. Actually, in 7.1 you can. ;-)
>
> Well I understand that it's being taken from the disk, but why does that action
> have to be done *right now*?
> Why can't it be postponed until I type 'commit;' ?
>
> I wonder how much time this addition would have saved those of us who type
> quickly and use the tab-completion too much :)
If one were inclined to do this sort of thing, it might even make sense
to argue that DROP TABLE hides the table (sets an attrib so that it
doesn't show, query planner doesn't see it, etc.); it should actually be
removed from disk when the database on VACUUM.
--
Joel Burton <jburton@scw.org>
Director of Information Systems, Support Center of Washington
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2001-04-12 21:23 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-04-12 18:32 DROP TABLE in transaction David Olbersen <dave@slickness.org>
2001-04-12 19:33 ` Peter Eisentraut <peter_e@gmx.net>
2001-04-12 19:18 ` David Olbersen <dave@slickness.org>
2001-04-12 21:23 ` Joel Burton <jburton@scw.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox