postgresql/src
Tom Lane 55873a00e3 Improve psql's behavior when the editor is exited without saving.
When editing the previous query buffer, if the editor is exited
without modifying the temp file then clear the query buffer,
rather than re-loading (and probably re-executing) the previous
query buffer.  This reduces the probability of accidentally
re-executing something you didn't intend to.

Similarly, in "\e file", if the file isn't actually modified
then don't load it into the query buffer.  And in "\ef" and
"\ev", if no changes are made then clear the query buffer
instead of loading the function or view definition into it.

Cases where we fail to invoke the editor at all, or it returns
a nonzero status, are treated like the no-file-modification case.

Laurenz Albe, reviewed by Jacob Champion

Discussion: https://postgr.es/m/0ba3f2a658bac6546d9934ab6ba63a805d46a49b.camel@cybertec.at
2021-04-03 17:38:31 -04:00
..
backend Improve efficiency of wait event reporting, remove proc.h dependency. 2021-04-03 12:03:45 -07:00
bin Improve psql's behavior when the editor is exited without saving. 2021-04-03 17:38:31 -04:00
common Refactor HMAC implementations 2021-04-03 17:30:49 +09:00
fe_utils psql: call clearerr() just before printing 2021-03-29 18:34:39 -03:00
include Improve efficiency of wait event reporting, remove proc.h dependency. 2021-04-03 12:03:45 -07:00
interfaces Refactor HMAC implementations 2021-04-03 17:30:49 +09:00
makefiles
pl Remove extra increment of plpgsql's statement counter for FOR loops. 2021-02-02 14:35:12 -05:00
port Move bsearch_arg to src/port 2021-03-23 00:11:22 +01:00
template Further tweaking of PG_SYSROOT heuristics for macOS. 2021-01-20 12:07:23 -05:00
test Use more verbose matching patterns for errors in SSL TAP tests 2021-04-03 20:49:08 +09:00
timezone Update time zone data files to tzdata release 2021a. 2021-01-24 16:29:47 -05:00
tools Refactor HMAC implementations 2021-04-03 17:30:49 +09:00
tutorial tutorial: land height is "elevation", not "altitude" 2021-03-10 20:25:19 -05:00
.gitignore
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in Introduce --with-ssl={openssl} as a configure option 2021-02-01 19:19:44 +09:00
Makefile.shlib
nls-global.mk Add errhint_plural() function and make use of it 2021-03-31 09:16:25 +02:00