Re: DWIM mode for psql

2019-04-01 Thread legrand legrand
Andreas Karlsson wrote > 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

Re: DWIM mode for psql

2019-03-31 Thread Amit Langote
Hi Thomas, Thanks for working on this. On Mon, Apr 1, 2019 at 5:53 Thomas Munro wrote: Hello, > > 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=# selec

Re: DWIM mode for psql

2019-03-31 Thread Andreas Karlsson
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 "da

Re: DWIM mode for psql

2019-03-31 Thread Corey Huinker
On Sun, Mar 31, 2019 at 5:04 PM Andres Freund wrote: > On 2019-04-01 09:52:34 +1300, Thomas Munro wrote: > > +/* > > + * This program is free software: you can redistribute it and/or modify > > + * it under the terms of the GNU General Public License as published by > > + * the Free Software Fou

Re: DWIM mode for psql

2019-03-31 Thread Andres Freund
On 2019-04-01 09:52:34 +1300, Thomas Munro wrote: > +/* > + * This program is free software: you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Software Foundation, either version 3 of the License, or > + * (at your opti