Re: Slow tab completion w/ lots of tables - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: Slow tab completion w/ lots of tables
Date
Msg-id 503379040200002500049990@gw.wicourts.gov
Whole thread Raw
In response to Re: Slow tab completion w/ lots of tables  (Stephen Frost <sfrost@snowman.net>)
Responses Re: Slow tab completion w/ lots of tables
List pgsql-hackers
Stephen Frost <sfrost@snowman.net> wrote:
> Would people accept adding an index on pg_class.relname to support
> fast tab-completion? Or is this going to expand into figuring out
> how to support index-based partial lookups for the 'name' type, so
> we could use the existing index (if that's even possible 
> to do...)?
That already seems to work for me.
explain analyze
select relname from pg_class where relname like 'Party%';Index Scan using pg_class_relname_nsp_index on pg_class
(cost=0.00..0.47rows=1 width=64)    (actual time=0.027..0.060 rows=19 loops=1)  Index Cond: ((relname >= 'Party'::name)
            AND (relname < 'Partz'::name))  Filter: (relname ~~ 'Party%'::text)Total runtime: 0.084 ms
 
-Kevin



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: 9.2RC1 wraps this Thursday ...
Next
From: Josh Berkus
Date:
Subject: Re: PostgreSQL 9.2beta4 (& git HEAD) server crash on creating extension plpython3u