Lists: | pgsql-hackers |
---|
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | psql commands for SQL/MED |
Date: | 2008-12-12 11:58:15 |
Message-ID: | 494251D7.2080602@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
The current proposed patch allocates the following psql \d commands:
\dw show foreign-data wrappers
\dr show foreign servers
\dm show user mappings
One might object that this allocates valuable letters for infrequently
used functionality.
In an idle second I thought, how about F for "foreign", but of course
\dF* is already used for full-text search. We could overload the F, but
it might be weird.
Other ideas?
From: | Dimitri Fontaine <dfontaine(at)hi-media(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: psql commands for SQL/MED |
Date: | 2008-12-12 12:28:24 |
Message-ID: | 37FBF3C5-3C85-4ACD-B58C-A0E70036CD21@hi-media.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Le 12 déc. 08 à 12:58, Peter Eisentraut a écrit :
> The current proposed patch allocates the following psql \d commands:
[...]
> In an idle second I thought, how about F for "foreign", but of
> course \dF* is already used for full-text search. We could overload
> the F, but it might be weird.
>
> Other ideas?
What about \dM prefix, M standing for MED? It seems free in my 8.3
psql here.
Regards,
- --
dim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAklCWOkACgkQlBXRlnbh1bkaWgCaA2Y02028n/+3BYPImJTEKJq8
ozgAn2v/XC+uSZy3imKCLW/tFt9Ohrik
=1ttA
-----END PGP SIGNATURE-----
From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Dimitri Fontaine <dfontaine(at)hi-media(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: psql commands for SQL/MED |
Date: | 2008-12-12 12:38:53 |
Message-ID: | 20081212123853.GA3806@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Dimitri Fontaine wrote:
> Le 12 déc. 08 à 12:58, Peter Eisentraut a écrit :
>> In an idle second I thought, how about F for "foreign", but of course
>> \dF* is already used for full-text search. We could overload the F,
>> but it might be weird.
>>
>> Other ideas?
>
> What about \dM prefix, M standing for MED? It seems free in my 8.3 psql
> here.
So \dMf for foreign servers, \dMu for user mappings, etc? That seems good.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From: | Martin Pihlak <martin(dot)pihlak(at)gmail(dot)com> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | Dimitri Fontaine <dfontaine(at)hi-media(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: psql commands for SQL/MED |
Date: | 2008-12-12 13:09:16 |
Message-ID: | 4942627C.5030806@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Alvaro Herrera wrote:
>> What about \dM prefix, M standing for MED? It seems free in my 8.3 psql
>> here.
>
> So \dMf for foreign servers, \dMu for user mappings, etc? That seems good.
>
I find the mixed case commands somewhat inconvinient -- too easy to make
typing mistakes, also slow to enter. If we can afford it, I would suggest
\dmw, \dms and \dmu (wrappers, servers and user mappings).
regards,
Martin
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | Dimitri Fontaine <dfontaine(at)hi-media(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: psql commands for SQL/MED |
Date: | 2008-12-12 13:24:36 |
Message-ID: | 4107.1229088276@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Dimitri Fontaine wrote:
>> What about \dM prefix, M standing for MED? It seems free in my 8.3 psql
>> here.
> So \dMf for foreign servers, \dMu for user mappings, etc? That seems good.
I'd suggest "e" for external. "M" for "management" is a pretty useless
mnemonic --- what's being managed?
regards, tom lane
From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Dimitri Fontaine <dfontaine(at)hi-media(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: psql commands for SQL/MED |
Date: | 2008-12-12 20:35:29 |
Message-ID: | 20081212203529.GY6942@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Fri, Dec 12, 2008 at 08:24:36AM -0500, Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> > Dimitri Fontaine wrote:
> >> What about \dM prefix, M standing for MED? It seems free in my
> >> 8.3 psql here.
>
> > So \dMf for foreign servers, \dMu for user mappings, etc? That
> > seems good.
>
> I'd suggest "e" for external. "M" for "management" is a pretty
> useless mnemonic --- what's being managed?
\def, \deu, etc. sound great :)
Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | David Fetter <david(at)fetter(dot)org> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Dimitri Fontaine <dfontaine(at)hi-media(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: psql commands for SQL/MED |
Date: | 2008-12-12 20:40:01 |
Message-ID: | 20081212204001.GL3806@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
David Fetter wrote:
> On Fri, Dec 12, 2008 at 08:24:36AM -0500, Tom Lane wrote:
> > I'd suggest "e" for external. "M" for "management" is a pretty
> > useless mnemonic --- what's being managed?
>
> \def, \deu, etc. sound great :)
\dew show foreign-data wrappers
\des show foreign servers
\deu show user mappings
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | David Fetter <david(at)fetter(dot)org>, Dimitri Fontaine <dfontaine(at)hi-media(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: psql commands for SQL/MED |
Date: | 2008-12-12 21:29:11 |
Message-ID: | 10691.1229117351@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> \dew show foreign-data wrappers
> \des show foreign servers
> \deu show user mappings
Right, but maybe use "external" rather than "foreign" in the help
so that people recognize what the mnemonic is.
regards, tom lane
From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Alvaro Herrera <alvherre(at)commandprompt(dot)com>, David Fetter <david(at)fetter(dot)org>, Dimitri Fontaine <dfontaine(at)hi-media(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: psql commands for SQL/MED |
Date: | 2008-12-12 22:02:15 |
Message-ID: | 4942DF67.3000403@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
>> \dew show foreign-data wrappers
>> \des show foreign servers
>> \deu show user mappings
I'd prefer "external" rather than foreign, because new users could
confuse the latter with "foreign keys".
--Josh