Re: [HACKERS] How to destroy your entire Postgres installation

From: Nick Bastin <nbastin(at)rbbsystems(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] How to destroy your entire Postgres installation
Date: 1998-09-26 01:07:43
Message-ID: 360C3E5D.792FFB51@rbbsystems.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
>
> It's easy: just destroydb one database that has active backends
> still running in it. Then stand back and watch the carnage.
> (Hint: back up all your *other* databases first, because you'll
> be lucky if you can still access them.)

So just for fun I tried this.. ;-) I did a destroydb on a database with 2
active backends and only 90 megs of data, and it managed to munge through the
other running database, which is fast approaching 2 gigs, in short order. The
first time I did it, I was able to rescue the second database just using the
audit trails that I'd built into it, but the second time it completely trashed
it. Now I'm no programming neophyte, but can somebody explain to me why this
happened? What exactly is destroydb doing, or am I missing something obvious here?

--
Nick Bastin
RBB Systems, Inc.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Kalchev 1998-09-26 09:53:59 functional indexes
Previous Message Tom Lane 1998-09-25 23:36:12 Re: [HACKERS] How to destroy your entire Postgres installation