Re: proposal: alternative psql commands quit and exit

From: Everaldo Canuto <everaldo(dot)canuto(at)gmail(dot)com>
To: Daniel Vérité <daniel(at)manitou-mail(dot)org>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: proposal: alternative psql commands quit and exit
Date: 2017-12-08 14:26:22
Message-ID: CACYgWUkGw9q55MdsaHUd27QxdUMiioWrP=gxGA89+iKojFb0Qw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,

On Fri, Dec 8, 2017 at 11:57 AM, Daniel Vérité" <daniel(at)manitou-mail(dot)org>
wrote:

> Implementing it is easy, but it might be a hard sell for the project
> because it creates a precedent.
>

We already have "help" (without slash) so I don't think it is a precedent.

> The next question in that list is "PostgreSQL DESCRIBE TABLE", so
> why not implement "desc tablename;" as a synonym for
> "\d tablename"?
>

I must be honest to you, I create this small patch to see how is contribute
do Postgres and to check how is reception on Postgres community.
That said, DESC[RIBE] is on my list for next patches but it is not a
synonym to \d.

DESC[RIBE] must be a SQL command, very useful when you are not running
psql. But let us discuss this on another thread ;-)

> The question after that is "Show tables in PostgreSQL", so
> why not implement "show tablename;"? Well, this one is
> impossible because SHOW is already a SQL command that does
> something else, so that's already the end of that road to
> compatibility.
>

Didn't know about SHOW command. Are TABLES a reserved word?

Regards.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Ford 2017-12-08 14:34:01 Re: proposal: alternative psql commands quit and exit
Previous Message Ryan Murphy 2017-12-08 14:10:35 Re: proposal: alternative psql commands quit and exit