postgresql/src/include
Tom Lane 31c341ae13 Produce a more useful error message for over-length Unix socket paths.
The length of a socket path name is constrained by the size of struct
sockaddr_un, and there's not a lot we can do about it since that is a
kernel API.  However, it would be a good thing if we produced an
intelligible error message when the user specifies a socket path that's too
long --- and getaddrinfo's standard API is too impoverished to do this in
the natural way.  So insert explicit tests at the places where we construct
a socket path name.  Now you'll get an error that makes sense and even
tells you what the limit is, rather than something generic like
"Non-recoverable failure in name resolution".

Per trouble report from Jeremy Drake and a fix idea from Andrew Dunstan.
2012-11-29 19:57:24 -05:00
..
access Fix multiple problems in WAL replay. 2012-11-12 22:05:27 -05:00
bootstrap Introduce Streaming Replication. 2010-01-15 09:19:10 +00:00
catalog Fix assorted bugs in CREATE INDEX CONCURRENTLY. 2012-11-29 14:52:07 -05:00
commands Prevent CREATE TABLE LIKE/INHERITS from (mis) copying whole-row Vars. 2012-06-30 16:44:09 -04:00
executor Fix PlanRowMark/ExecRowMark structures to handle inheritance correctly. 2011-01-12 20:47:09 -05:00
foreign Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
lib Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
libpq Produce a more useful error message for over-length Unix socket paths. 2012-11-29 19:57:24 -05:00
mb Back-patch addition of pg_wchar-to-multibyte conversion functionality. 2012-07-10 16:52:47 -04:00
nodes Fix handling of inherited check constraints in ALTER COLUMN TYPE. 2012-11-05 13:36:31 -05:00
optimizer Fix planning of non-strict equivalence clauses above outer joins. 2012-10-18 12:29:06 -04:00
parser Make OFF keyword unreserved. It's not hard to imagine wanting to use 'off' 2010-10-22 17:44:36 +03:00
port Backport changes to allow building with MinGW 64 bit compiler. 2011-04-09 17:59:27 -04:00
portability Support inlining various small performance-critical functions on non-GCC 2010-02-13 02:34:16 +00:00
postmaster pgindent run for 9.0 2010-02-26 02:01:40 +00:00
regex Back-patch fix for extraction of fixed prefixes from regular expressions. 2012-07-10 18:00:47 -04:00
replication Remove prototype for non-existent function from walreceiver.h. Tidy up by 2010-09-13 10:14:30 +00:00
rewrite Prevent CREATE TABLE LIKE/INHERITS from (mis) copying whole-row Vars. 2012-06-30 16:44:09 -04:00
snowball Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
storage Correctly init/deinit recovery xact environment. 2012-11-29 23:46:54 +00:00
tcop pgindent run for 9.0 2010-02-26 02:01:40 +00:00
tsearch Update a number of broken links in comments. 2010-04-02 15:21:20 +00:00
utils Back-patch fix for extraction of fixed prefixes from regular expressions. 2012-07-10 18:00:47 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:06 +02:00
c.h Backport changes to allow building with MinGW 64 bit compiler. 2011-04-09 17:59:27 -04:00
fmgr.h Mark PG_MODULE_MAGIC and PG_FUNCTION_INFO_V1 with PGDLLEXPORT 2010-05-27 07:59:48 +00:00
funcapi.h pgindent run for 9.0 2010-02-26 02:01:40 +00:00
getaddrinfo.h Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
getopt_long.h Remove optreset from src/port/ implementations of getopt and getopt_long. 2010-12-16 16:22:12 -05:00
Makefile Fix server header file installation with vpath builds 2011-11-10 20:55:39 +02:00
miscadmin.h Do stack-depth checking in all postmaster children. 2012-04-08 19:09:12 +03:00
pg_config.h.in Use __sync_lock_test_and_set() for spinlocks on ARM, if available. 2012-01-07 15:39:05 -05:00
pg_config.h.win32 Stamp 9.0.10. 2012-09-19 17:53:08 -04:00
pg_config_manual.h Remove all the special-case code for INT64_IS_BUSTED, per decision that 2010-01-07 04:53:35 +00:00
pg_trace.h Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
pgstat.h Fix VACUUM so that it always updates pg_class.reltuples/relpages. 2011-05-30 17:07:07 -04:00
pgtime.h Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
port.h Move the line to undefine setlocale() macro on Win32 outside USE_REPL_SNPRINTF 2011-09-01 09:18:27 +03:00
postgres.h Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
postgres_ext.h Move NAMEDATALEN definition from postgres_ext.h to pg_config_manual.h. It 2007-02-06 09:16:08 +00:00
postgres_fe.h Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
rusagestub.h Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
windowapi.h Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00