Re: [HACKERS] Autocomplete <TAB> on Postgres7.4beta5 not

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Rod Taylor <rbt(at)rbt(dot)ca>, Alvaro Herrera Munoz <alvherre(at)dcc(dot)uchile(dot)cl>, Gaetano Mendola <mendola(at)bigfoot(dot)com>, <pgsql-bugs(at)postgresql(dot)org>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>, Ian Barwick <barwick(at)gmx(dot)net>
Subject: Re: [HACKERS] Autocomplete <TAB> on Postgres7.4beta5 not
Date: 2003-10-29 00:01:49
Message-ID: Pine.LNX.4.33.0310281658290.20217-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Tue, 28 Oct 2003, Tom Lane wrote:

> Rod Taylor <rbt(at)rbt(dot)ca> writes:
> > I say leave it the way it is. If you want system table tab completion,
> > simply:
> > ALTER USER ... SET search_path =3D pg_catalog,...;
>
> Unfortunately, that *does not* affect the tab-completion behavior;
> it will still not offer the system catalogs as completions unless
> you explicitly prefix "pg_catalog.".

It seems a good compromise then would be that if "pg_catalog" is in your
search path, then do the old fashioned completion, i.e. p<tab> will list
everything in both pg_catalog and the other schemas in your search path.

Afterall, the system catalog kind of "hitchhikes" along for a ride in your
search path. Most users aren't interested in the system catalogs, so
having them suddenly show up when you just wanted the phonebook table is
kinda a bother for them.

Is it possible to remove the implicit search path of pg_catalog from a
psql session without it breaking lots of stuff? If not, then it's kind of
ugly to the user to have no way to get the system from proffering
pg_catalog tables when they have no interest in them. If so, then why
make it part of the default?

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Rod Taylor 2003-10-29 00:18:41 Re: [HACKERS] Autocomplete <TAB> on Postgres7.4beta5 not
Previous Message Tom Lane 2003-10-28 23:49:28 Re: [HACKERS] Autocomplete <TAB> on Postgres7.4beta5 not working?

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Elphick 2003-10-29 00:12:51 Re: Proposed structure for coexisting major versions
Previous Message Tom Lane 2003-10-28 23:49:28 Re: [HACKERS] Autocomplete <TAB> on Postgres7.4beta5 not working?