Re: BUG #4238: pg_class.relhasindex not updated by vacuum

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Lawrence Cohan <lawrencec(at)1shoppingcart(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4238: pg_class.relhasindex not updated by vacuum
Date: 2008-06-13 16:56:45
Message-ID: 20080613165645.GQ5534@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Lawrence Cohan wrote:
> Isn't a PK a CONSTRAINT and not an INDEX???

Sure, from a logical point of view. The implementation of that
constraint is an index.

> In that case the two separate pg_class relhasindex and relhaspkey would
> make sense indeed - just a thought nothing else and we'll take it as is.

What would be the point? If you want to figure out whether a table has
a primary key, you can query the catalogs.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Lawrence Cohan 2008-06-13 17:03:27 Re: BUG #4238: pg_class.relhasindex not updated by vacuum
Previous Message Lawrence Cohan 2008-06-13 16:45:10 Re: BUG #4238: pg_class.relhasindex not updated by vacuum