Skip site navigation (1) Skip section navigation (2)

Re: pgsql: If an index depends on no columns of itstable, give it a

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)postgresql(dot)org>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: If an index depends on no columns of itstable, give it a
Date: 2007-11-09 08:35:17
Message-ID: 1194597317.4251.354.camel@ebony.site (view raw or flat)
Thread:
Lists: pgsql-committers
On Thu, 2007-11-08 at 23:22 +0000, Tom Lane wrote:
> Log Message:
> -----------
> If an index depends on no columns of its table, give it a dependency on the
> whole table instead, to ensure that it goes away when the table is dropped.
> Per bug #3723 from Sam Mason.
> 
> Backpatch as far as 7.4; AFAICT 7.3 does not have the issue, because it doesn't
> have general-purpose expression indexes and so there must be at least one
> column referenced by an index.
> 

I had understood the discussion to conclude that indexes that do not
depend on any column of the table to not be allowed at all.

Why would anyone want this? (There was a workaround to the original
thought). What value is there in allowing such strange cases?

-- 
  Simon Riggs
  2ndQuadrant  http://www.2ndQuadrant.com


In response to

Responses

pgsql-committers by date

Next:From: Tom LaneDate: 2007-11-09 09:05:58
Subject: Re: pgsql: If an index depends on no columns of its table, give it a
Previous:From: Bruce MomjianDate: 2007-11-09 02:32:09
Subject: Fix for stop words in thesaurus file

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group