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

From: David Fetter <david(at)fetter(dot)org>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: If an index depends on no columns of its table, give it a
Date: 2007-11-10 20:40:15
Message-ID: 20071110204014.GR3910@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Sat, Nov 10, 2007 at 07:31:39PM +0000, Simon Riggs wrote:
> On Sat, 2007-11-10 at 11:22 -0500, Tom Lane wrote:
> > Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> > > Constants in indexes are just a strangeness we don't need.
> >
> If I invented zero-column tables

You don't have to.

CREATE TABLE foo();

already works. As I understand it, this is there to allow people to
rearrange tables completely--drop all the columns and replace them,
for example--and not have that fail.

Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Dave Page 2007-11-10 21:37:43 Re: pgsql: If an index depends on no columns of itstab le, give it a
Previous Message User Mkz 2007-11-10 20:21:51 plproxy - plproxy: relnotes for 2.0.3