pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Chris <chris@bitmead.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgreSQL.org
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [HACKERS] Re: [SQL] Proposed Changes to PostgreSQL
Date: Thu, 3 Feb 2000 07:37:42 -0500 (EST)
Message-ID: <200002031237.HAA21220@candle.pha.pa.us> (raw)
In-Reply-To: <3899746F.9869F4D8@bitmead.com>

> Bruce Momjian wrote:
> 
> > > Well I see that pg_class has columns like "relhasindex". If we added a
> > > "relhassubclass", the overhead should be unmeasureable.
> > 
> > Yes, but how do you keep that accurate?  If I add indexes, then drop
> > them, does relhasindex go to false. 
> 
> I don't know. Does it? 

Oops:
	
	test=> create table test(x int);
	CREATE
	test=> create index i_test on test(x);
	CREATE
	test=> select relhasindex from pg_class where relname = 'test';
	 relhasindex 
	-------------
	 t
	(1 row)

	test=> drop index i_test;
	DROP
	test=> select relhasindex from pg_class where relname = 'test';
	 relhasindex 
	-------------
	 t
	(1 row)

Let me add that to the TODO list.

> 
> >Could you do that for relhassubclass?
> 
> If we made it relnumsubclasses and incremented/decremented on
> CREATE/DROP, it seems easy in theory.

Yes, that would work.  Seems hasindex has problems.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



view thread (68+ messages)  latest in thread

Message-ID: <200002031237.HAA21220@candle.pha.pa.us>
Permalink:  ../200002031237.HAA21220@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200002031237.HAA21220@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: pgman@candle.pha.pa.us, chris@bitmead.com, tgl@sss.pgh.pa.us, pgsql-hackers@postgreSQL.org
  Subject: Re: [HACKERS] Re: [SQL] Proposed Changes to PostgreSQL
  In-Reply-To: <200002031237.HAA21220@candle.pha.pa.us>
  References: <3899746F.9869F4D8@bitmead.com> <200002031237.HAA21220@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox