pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedDelete accident
4+ messages / 3 participants
[nested] [flat]
* Delete accident
@ 2003-09-30 15:28 Anna Kanevsky <akanevsky@aahe.org>
0 siblings, 2 replies; 4+ messages in thread
From: Anna Kanevsky @ 2003-09-30 15:28 UTC (permalink / raw)
To: pgsql-admin
This is an almost embarrassing question, but I managed to delete all rows
out of one of the tables by making a little typo in the WHERE statement.
Is there any way to restore these? the db was NOT vacuumed after that. but
then, it wasn't backed up before either.
please help!
thanks.
____________________________________
Anya Kanevsky
Manager, Web Projects
American Association for Higher Education
One Dupont Circle, Suite 360
Washington, DC 20036-1143
202.293.6440 ext 786
www.aahe.org
Submit your proposal for the national 2004 Learning to Change Conference at
http://www.aahe.org/learningtochange.
The proposal deadline is October 1. The conference is April 1-4 in at the
Sheraton San Diego Hotel & Marina.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Delete accident
@ 2003-10-02 23:35 Gaetano Mendola <mendola@bigfoot.com>
parent: Anna Kanevsky <akanevsky@aahe.org>
1 sibling, 0 replies; 4+ messages in thread
From: Gaetano Mendola @ 2003-10-02 23:35 UTC (permalink / raw)
To: pgsql-admin; +Cc: Anna Kanevsky <akanevsky@aahe.org>
Anna Kanevsky wrote:
> This is an almost embarrassing question, but I managed to delete all
> rows out of one of the tables by making a little typo in the WHERE
> statement.
When you do update or delete is good do it inside a transaction, I guess
you didn't !
I think that your datas are lost.
Gaetano
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Delete accident
@ 2003-10-02 23:43 Stephan Szabo <sszabo@megazone.bigpanda.com>
parent: Anna Kanevsky <akanevsky@aahe.org>
1 sibling, 0 replies; 4+ messages in thread
From: Stephan Szabo @ 2003-10-02 23:43 UTC (permalink / raw)
To: Anna Kanevsky <akanevsky@aahe.org>; +Cc: pgsql-admin
On Tue, 30 Sep 2003, Anna Kanevsky wrote:
> This is an almost embarrassing question, but I managed to delete all rows
> out of one of the tables by making a little typo in the WHERE statement.
> Is there any way to restore these? the db was NOT vacuumed after that. but
> then, it wasn't backed up before either.
Potentially, if vacuum wasn't run, you may be able to go back, find the
transaction that did the delete and mark it as having rolled back, but I
don't really know the details necessary to make that work.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Delete accident
@ 2003-10-02 23:44 Anna Kanevsky <akanevsky@aahe.org>
0 siblings, 0 replies; 4+ messages in thread
From: Anna Kanevsky @ 2003-10-02 23:44 UTC (permalink / raw)
To: Stephan Szabo <sszabo@megazone.bigpanda.com>; +Cc: pgsql-admin
Thank you everyone!
I got a load of responses, and don't want to keep anyone working at this.
the magic is in pgfsck! http://svana.org/kleptog/pgsql/pgfsck.html
-anya
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2003-10-02 23:44 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-09-30 15:28 Delete accident Anna Kanevsky <akanevsky@aahe.org>
2003-10-02 23:35 ` Gaetano Mendola <mendola@bigfoot.com>
2003-10-02 23:43 ` Stephan Szabo <sszabo@megazone.bigpanda.com>
2003-10-02 23:44 Re: Delete accident Anna Kanevsky <akanevsky@aahe.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