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

Re: pgsql: If an index depends on no columns of itstable, 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 itstable, give it a
Date: 2007-11-10 20:40:15
Message-ID: 20071110204014.GR3910@fetter.org (view raw or flat)
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

pgsql-committers by date

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

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