Re: [HACKERS] HISTIGNORE for psql

2017-08-18 Thread Vesa-Matti J Kari
Hello, On Fri, 18 Aug 2017, Vesa-Matti J Kari wrote: > A quick patch is attached. Not sure about the quality, hacked this > together in about four hours, trying to figure out how to do it correctly > the PostgreSQL way. Sorry, I guess I have written too many Python scripts. I no longer remember

Re: [HACKERS] HISTIGNORE for psql

2017-08-18 Thread Vesa-Matti J Kari
Hello, On Thu, 17 Aug 2017, Pavel Stehule wrote: > 2017-08-17 9:23 GMT+02:00 Vesa-Matti J Kari : > > Bash has HISTIGNORE feature that allows you to exclude certain commands > from the command history (e.g. shutdown, reboot, rm *). > > Would it make any sense to add such a featu

Re: [HACKERS] HISTIGNORE for psql

2017-08-17 Thread Pavel Stehule
2017-08-17 9:23 GMT+02:00 Vesa-Matti J Kari : > > Hello, > > Bash has HISTIGNORE feature that allows you to exclude certain commands > from the command history (e.g. shutdown, reboot, rm *). > > Would it make any sense to add such a feature to psql (e.g. to ignore > DROP, DELETE commands)? > It i

[HACKERS] HISTIGNORE for psql

2017-08-17 Thread Vesa-Matti J Kari
Hello, Bash has HISTIGNORE feature that allows you to exclude certain commands from the command history (e.g. shutdown, reboot, rm *). Would it make any sense to add such a feature to psql (e.g. to ignore DROP, DELETE commands)? Regards, vmk -- *