Re: drop table and cleanups - Mailing list pgsql-novice

From Josh Kupershmidt
Subject Re: drop table and cleanups
Date
Msg-id CAK3UJRHtCi+3F_46nTwEz+vV_riktcygfi_RnjsLJSN2jM_6Kw@mail.gmail.com
Whole thread Raw
In response to drop table and cleanups  ("Birchall, Austen" <austen.birchall@metoffice.gov.uk>)
List pgsql-novice
On Mon, Nov 19, 2012 at 8:28 AM, Birchall, Austen
<austen.birchall@metoffice.gov.uk> wrote:
> If I drop a table am I right to assume that all its indexes, sequences etc.
> will also be dropped and that all entries in pg_class, pg_constraint, etc.
> will be cleaned up?

Yes. Check out pg_depend if you're interested in the bookkeeping
behind this dependency tracking:
  http://www.postgresql.org/docs/current/static/catalog-pg-depend.html

Josh


pgsql-novice by date:

Previous
From: "Birchall, Austen"
Date:
Subject: drop table and cleanups
Next
From: Ennio-Sr
Date:
Subject: Postgresql-8.4: File System Level Backup (& recovery failure)