From: | Andreas Karlsson <andreas(at)proxel(dot)se> |
---|---|
To: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: DWIM mode for psql |
Date: | 2019-03-31 21:49:51 |
Message-ID: | a7825506-f887-133e-10ca-5eadc78ae945@proxel.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 3/31/19 10:52 PM, Thomas Munro wrote:> Building on the excellent work
begun by commit e529cd4ffa60, I would
> like to propose a do-what-I-mean mode for psql. Please find a POC
> patch attached. It works like this:
>
> postgres=# select datnaam from pg_database where ooid = 12917;
> ERROR: column "datnaam" does not exist
> LINE 1: select datnaam from pg_database where ooid = 12917;
> ^
> HINT: Perhaps you meant to reference the column "pg_database.datname".
> postgres=# YES
> datname
> ----------
> postgres
> (1 row)
I think it is potentially confusing that YES and NO does not look like
other psql commands. Let's pick something which is more in line with
existing commands like \y and \n.
Andreas
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2019-03-31 21:57:37 | Re: FETCH FIRST clause PERCENT option |
Previous Message | Andres Freund | 2019-03-31 21:34:31 | Re: FETCH FIRST clause PERCENT option |