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

From David Fetter
Subject Re: pgsql: If an index depends on no columns of its table, give it a
Date
Msg-id 20071110204014.GR3910@fetter.org
Whole thread Raw
In response to Re: pgsql: If an index depends on no columns of its table, give it a  (Simon Riggs <simon@2ndquadrant.com>)
List 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@2ndquadrant.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@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

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

pgsql-committers by date:

Previous
From: mkz@pgfoundry.org (User Mkz)
Date:
Subject: plproxy - plproxy: relnotes for 2.0.3
Next
From: "Dave Page"
Date:
Subject: Re: pgsql: If an index depends on no columns of itstab le, give it a