pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Davis <pgsql@j-davis.com>
Cc: Joshua D. Drake <jd@commandprompt.com>
Cc: Scott Marlowe <scott.marlowe@gmail.com>
Cc: Peter Koczan <pjkoczan@gmail.com>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: disabling an index without deleting it?
Date: Wed, 27 Feb 2008 15:02:46 -0500
Message-ID: <6515.1204142566@sss.pgh.pa.us> (raw)
In-Reply-To: <1204139818.16886.29.camel@dogma.ljc.laika.com>
References: <4544e0330802261246t574167fdpc47629d1bbe64fed@mail.gmail.com>
	<dcc563d10802261257h6abfbc92x62a7569b8610ecc4@mail.gmail.com>
	<20080226130339.64bd4ec3@commandprompt.com>
	<9050.1204064560@sss.pgh.pa.us>
	<1204139818.16886.29.camel@dogma.ljc.laika.com>

Jeff Davis <pgsql@j-davis.com> writes:
>>> begin;
>>> drop index abc_dx;
>>> select ....
>>> rollback;

> It may cause catalog bloat though, right?

Not in this particular case; AFAIR this will only result in catalog row
deletions, not updates.  So when the deletions roll back, there's no
dead rows to clean up.

			regards, tom lane



view thread (18+ messages)  latest in thread

Message-ID: <6515.1204142566@sss.pgh.pa.us>
Permalink:  ../6515.1204142566@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6515.1204142566@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql@j-davis.com, jd@commandprompt.com, scott.marlowe@gmail.com, pjkoczan@gmail.com
  Subject: Re: disabling an index without deleting it?
  In-Reply-To: <6515.1204142566@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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