Re: proposal: alternative psql commands quit and exit - Mailing list pgsql-hackers

From Everaldo Canuto
Subject Re: proposal: alternative psql commands quit and exit
Date
Msg-id CACYgWUmzwHSdhhJ6Gzz-BKZ_hVnd=BgqnJP_gn2gZA-XdwnnrA@mail.gmail.com
Whole thread Raw
In response to Re: proposal: alternative psql commands quit and exit  (Fabrízio de Royes Mello <fabriziomello@gmail.com>)
List pgsql-hackers
Hello.

On Mon, Dec 11, 2017 at 11:14 AM, Fabrízio de Royes Mello <fabriziomello@gmail.com> wrote:

And what about create some way to create aliases for meta-commands in psql? Something like:

\alias quit \q
\alias exit \q

We also can create a special config variable to enable/disable use of aliases:

\set USE_ALIAS on


I don't think it will fix the problem, if you don't know how to use "\q", "\alias exit \q" and "exit" will be even harder.
Remember, it is basically to help newcomers.


pgsql-hackers by date:

Previous
From: Fabrízio de Royes Mello
Date:
Subject: Re: proposal: alternative psql commands quit and exit
Next
From: Tom Lane
Date:
Subject: Re: Rethinking MemoryContext creation