postgresql/src/backend
Tom Lane 4f405c8ef4 Add a HINT for client-vs-server COPY failure cases.
Users often get confused between COPY and \copy and try to use client-side
paths with COPY.  The server then cannot find the file (if remote), or sees
a permissions problem (if local), or some variant of that.  Emit a hint
about this in the most common cases.

In future we might want to expand the set of errnos for which the hint
gets printed, but be conservative for now.

Craig Ringer, reviewed by Christoph Berg and Tom Lane

Discussion: <CAMsr+YEqtD97qPEzQDqrCt5QiqPbWP_X4hmvy2pQzWC0GWiyPA@mail.gmail.com>
2016-09-06 23:55:55 -04:00
..
access Add location field to DefElem 2016-09-06 12:00:00 -04:00
bootstrap Fix a bunch of places that called malloc and friends with no NULL check. 2016-08-30 18:22:43 -04:00
catalog Add location field to DefElem 2016-09-06 12:00:00 -04:00
commands Add a HINT for client-vs-server COPY failure cases. 2016-09-06 23:55:55 -04:00
executor Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
foreign Remove GetUserMappingId() and GetUserMappingById(). 2016-07-22 11:32:23 -04:00
lib Clarify the new Red-Black post-order traversal code a bit. 2016-09-04 15:02:06 +03:00
libpq Move code shared between libpq and backend from backend/libpq/ to common/. 2016-09-02 13:49:59 +03:00
main Repair a bit of pgindent damage. 2016-06-09 18:09:17 -04:00
nodes Add location field to DefElem 2016-09-06 12:00:00 -04:00
optimizer Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
parser Add location field to DefElem 2016-09-06 12:00:00 -04:00
po Translation updates 2016-08-08 11:08:00 -04:00
port Fix a bunch of places that called malloc and friends with no NULL check. 2016-08-30 18:22:43 -04:00
postmaster Move code shared between libpq and backend from backend/libpq/ to common/. 2016-09-02 13:49:59 +03:00
regex Make locale-dependent regex character classes work for large char codes. 2016-09-05 17:06:29 -04:00
replication Add location field to DefElem 2016-09-06 12:00:00 -04:00
rewrite pgindent run for 9.6 2016-06-09 18:02:36 -04:00
snowball Update copyright for 2016 2016-01-02 13:33:40 -05:00
storage Add debug check function LWLockHeldByMeInMode() 2016-09-05 10:38:08 +01:00
tcop Add location field to DefElem 2016-09-06 12:00:00 -04:00
tsearch Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
utils Guard against possible memory allocation botch in batchmemtuples(). 2016-09-06 15:50:31 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Provide and use a makefile target to build all generated headers. 2016-07-01 15:09:02 -04:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
nls.mk Remove trailing slashes from directories in find command 2015-09-18 22:06:54 -04:00