dbTalk Databases Forums  

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

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] [HACKERS] Autocomplete <TAB> on Postgres7.4beta5 not in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rod Taylor
 
Posts: n/a

Default Re: [BUGS] [HACKERS] Autocomplete <TAB> on Postgres7.4beta5 not - 10-28-2003 , 06:22 PM






--=-B23nqlQkj8mkIxGzz0XE
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Tue, 2003-10-28 at 18:49, Tom Lane wrote:
Quote:
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 =3D3D pg_catalog,...;
=20
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.".
Very well.. Would it be enough simply to fix it so it does work? Remove
the S functionality and allow pg_catalog to work like a normal schema.

--=-B23nqlQkj8mkIxGzz0XE
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQA/nwdg6DETLow6vwwRAlTtAJ9aaKIax4JLCnMj13lk3vOwD7AgdQ CeKBcP
3HgffqkFwQppgcwb/MfFmJ4=
=pERi
-----END PGP SIGNATURE-----

--=-B23nqlQkj8mkIxGzz0XE--



Reply With Quote
  #2  
Old   
Rod Taylor
 
Posts: n/a

Default Re: [BUGS] [HACKERS] Autocomplete <TAB> on Postgres7.4beta5 not - 10-28-2003 , 09:25 PM






--=-YxGGwuT2+mfOQnAFI/9Z
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Tue, 2003-10-28 at 19:34, scott.marlowe wrote:
Quote:
On Tue, 28 Oct 2003, Tom Lane wrote:
=20
"scott.marlowe" <scott.marlowe (AT) ihs (DOT) com> writes:
Is it possible to remove the implicit search path of pg_catalog from =
a=20
psql session without it breaking lots of stuff?
=20
Do you consider "+", "count()", etc to be important stuff?
=20
Me, hardly ever use them :-) So I can assume that removing the implicit=
=20
pg_catalog from the search path is a "bad thing."
=46rom the search_path certainly -- but we can we teach the difference
between implicit and explicit to the *is_visible functions?

--=-YxGGwuT2+mfOQnAFI/9Z
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQA/nzJk6DETLow6vwwRAnBVAJ0eVn/XQnnnS0Ikkith8M+LVshrugCfW8RK
bbFok0oJum0paSJVXH5e2tc=
=qOMN
-----END PGP SIGNATURE-----

--=-YxGGwuT2+mfOQnAFI/9Z--



Reply With Quote
  #3  
Old   
scott.marlowe
 
Posts: n/a

Default Re: [BUGS] [HACKERS] Autocomplete <TAB> on Postgres7.4beta5 not - 10-30-2003 , 02:28 PM



On Tue, 28 Oct 2003, Tom Lane wrote:

Quote:
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?




---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)


Reply With Quote
  #4  
Old   
scott.marlowe
 
Posts: n/a

Default Re: [BUGS] [HACKERS] Autocomplete <TAB> on Postgres7.4beta5 not - 10-30-2003 , 02:31 PM



On Tue, 28 Oct 2003, Tom Lane wrote:

Quote:
"scott.marlowe" <scott.marlowe (AT) ihs (DOT) com> writes:
Is it possible to remove the implicit search path of pg_catalog from a
psql session without it breaking lots of stuff?

Do you consider "+", "count()", etc to be important stuff?
Me, hardly ever use them :-) So I can assume that removing the implicit
pg_catalog from the search path is a "bad thing."

In that case, does my proposed solution of having to implicitly include
pg_catalog in your search path to get it to be seen by tab completion as
just another schema make sense?


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.