postgresql/src/bin
Tom Lane df9ebf1eea Remove workaround for ancient incompatibility between readline and libedit.
GNU readline defines the return value of write_history() as "zero if OK,
else an errno code".  libedit's version of that function used to have a
different definition (to wit, "-1 if error, else the number of lines
written to the file").  We tried to work around that by checking whether
errno had become nonzero, but this method has never been kosher according
to the published API of either library.  It's reportedly completely broken
in recent Ubuntu releases: psql bleats about "No such file or directory"
when saving ~/.psql_history, even though the write worked fine.

However, libedit has been following the readline definition since somewhere
around 2006, so it seems all right to finally break compatibility with
ancient libedit releases and trust that the return value is what readline
specifies.  (I'm not sure when the various Linux distributions incorporated
this fix, but I did find that OS X has been shipping fixed versions since
10.5/Leopard.)

If anyone is still using such an ancient libedit, they will find that psql
complains it can't write ~/.psql_history at exit, even when the file was
written correctly.  This is no worse than the behavior we're fixing for
current releases.

Back-patch to all supported branches.
2015-03-14 13:43:00 -04:00
..
initdb Translation updates 2015-02-01 23:23:40 -05:00
pg_basebackup Error when creating names too long for tar format 2015-02-24 13:41:07 -05:00
pg_config Translation updates 2015-02-01 23:23:40 -05:00
pg_controldata Translation updates 2015-02-01 23:23:40 -05:00
pg_ctl Add macros wrapping all usage of gcc's __attribute__. 2015-03-11 14:30:01 +01:00
pg_dump Add macros wrapping all usage of gcc's __attribute__. 2015-03-11 14:30:01 +01:00
pg_resetxlog Translation updates 2015-02-01 23:23:40 -05:00
pgevent Update copyright for 2015 2015-01-06 11:43:47 -05:00
psql Remove workaround for ancient incompatibility between readline and libedit. 2015-03-14 13:43:00 -04:00
scripts Translation updates 2015-02-01 23:23:40 -05:00
Makefile Sort SUBDIRS variable in src/bin/Makefile 2015-03-08 14:09:34 -04:00