postgresql/src/include
Tom Lane d068609b95 Remove code to match IPv4 pg_hba.conf entries to IPv4-in-IPv6 addresses.
In investigating yesterday's crash report from Hugo Osvaldo Barrera, I only
looked back as far as commit f3aec2c7f5 where the breakage occurred
(which is why I thought the IPv4-in-IPv6 business was undocumented).  But
actually the logic dates back to commit 3c9bb8886d and was simply
broken by erroneous refactoring in the later commit.  A bit of archives
excavation shows that we added the whole business in response to a report
that some 2003-era Linux kernels would report IPv4 connections as having
IPv4-in-IPv6 addresses.  The fact that we've had no complaints since 9.0
seems to be sufficient confirmation that no modern kernels do that, so
let's just rip it all out rather than trying to fix it.

Do this in the back branches too, thus essentially deciding that our
effective behavior since 9.0 is correct.  If there are any platforms on
which the kernel reports IPv4-in-IPv6 addresses as such, yesterday's fix
would have made for a subtle and potentially security-sensitive change in
the effective meaning of IPv4 pg_hba.conf entries, which does not seem like
a good thing to do in minor releases.  So let's let the post-9.0 behavior
stand, and change the documentation to match it.

In passing, I failed to resist the temptation to wordsmith the description
of pg_hba.conf IPv4 and IPv6 address entries a bit.  A lot of this text
hasn't been touched since we were IPv4-only.
2015-02-17 12:49:44 -05:00
..
access Flush unlogged table's buffers when copying or moving databases. 2014-10-20 23:47:00 +02:00
bootstrap Fix off-by-one loop count in MapArrayTypeName, and get rid of static array. 2014-12-16 15:35:43 -05:00
catalog Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
commands Test IsInTransactionChain, not IsTransactionBlock, in vac_update_relstats. 2014-10-30 13:03:31 -04:00
datatype Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
executor Ensure that whole-row Vars produce nonempty column names. 2014-11-10 15:21:26 -05:00
foreign Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
lib Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
libpq Remove code to match IPv4 pg_hba.conf entries to IPv4-in-IPv6 addresses. 2015-02-17 12:49:44 -05:00
mb Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
nodes Ensure that whole-row Vars produce nonempty column names. 2014-11-10 15:21:26 -05:00
optimizer Fix some more problems with nested append relations. 2014-10-01 19:30:34 -04:00
parser Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
port Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
portability Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
postmaster Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
regex Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
replication Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
rewrite Avoid getting more than AccessShareLock when deparsing a query. 2014-03-06 19:31:12 -05:00
snowball Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
storage Fix broken #ifdef for __sparcv8 2015-02-13 23:57:25 +02:00
tcop Be more careful to not lose sync in the FE/BE protocol. 2015-02-02 17:09:35 +02:00
tsearch Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:33 -05:00
utils Explicitly support the case that a plancache's raw_parse_tree is NULL. 2014-11-12 15:58:47 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
c.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
fmgr.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
funcapi.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
getaddrinfo.h Fix assorted issues in client host name lookup. 2014-04-02 17:11:31 -04:00
getopt_long.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
Makefile Fix server header file installation with vpath builds 2011-11-10 20:52:54 +02:00
miscadmin.h Be more careful to not lose sync in the FE/BE protocol. 2015-02-02 17:09:35 +02:00
pg_config.h.in On Darwin, detect and report a multithreaded postmaster. 2015-01-07 22:41:49 -05:00
pg_config.h.win32 Stamp 9.2.10. 2015-02-02 15:44:39 -05:00
pg_config_manual.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
pg_trace.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
pgstat.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
pgtime.h Support timezone abbreviations that sometimes change. 2014-10-16 15:22:20 -04:00
port.h Declare mkdtemp() only if we're providing it. 2014-10-17 22:55:30 -04:00
postgres.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
postgres_ext.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
postgres_fe.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
rusagestub.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
windowapi.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00