Re: Slow tab completion w/ lots of tables

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Slow tab completion w/ lots of tables
Date: 2012-08-21 15:27:28
Message-ID: CA+TgmoZBPn=dU=TiXFqpoMWKuxpgiQZjwPPoem59fe7O+HBpeQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Aug 16, 2012 at 10:37 PM, Stephen Frost <sfrost(at)snowman(dot)net> wrote:
> Greetings,
>
> When doing tab-completion under 9.1, pg_table_is_visible(oid) is slow
> and is ending up as the first thing tested against all the rows
> in pg_class. Increasing the cost of pg_table_is_visible() up to
> 10 causes it to move to the end of the tests, which improves things
> greatly- I thought there was a plan to make that the default..?
>
> This is with 9.1.4.

Is this a regression versus earlier releases, or just a bad thing in general?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2012-08-21 15:30:16 Re: 9.2RC1 wraps this Thursday ...
Previous Message Robert Haas 2012-08-21 15:23:14 Re: 9.2RC1 wraps this Thursday ...