postgresql/src/backend/commands
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
..
Makefile Support CREATE ACCESS METHOD 2016-03-23 23:01:35 -03:00
aggregatecmds.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
alter.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
amcmds.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
analyze.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
async.c Fix several mistakes around parallel workers and client_encoding. 2016-06-30 18:35:32 -04:00
cluster.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
collationcmds.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
comment.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
constraint.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
conversioncmds.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
copy.c Add a HINT for client-vs-server COPY failure cases. 2016-09-06 23:55:55 -04:00
createas.c Fix CREATE MATVIEW/CREATE TABLE AS ... WITH NO DATA to not plan the query. 2016-06-27 15:57:50 -04:00
dbcommands.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
define.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
discard.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
dropcmds.c Fix DROP ACCESS METHOD IF EXISTS. 2016-05-27 11:03:18 -04:00
event_trigger.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
explain.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
extension.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
foreigncmds.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
functioncmds.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
indexcmds.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
lockcmds.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
matview.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
opclasscmds.c Add SQL-accessible functions for inspecting index AM properties. 2016-08-13 18:31:14 -04:00
operatorcmds.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
policy.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
portalcmds.c Fix TOAST access failure in RETURNING queries. 2016-08-07 17:46:08 -04:00
prepare.c On second thought, disable parallelism for prepared statements. 2016-02-26 16:33:37 +05:30
proclang.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
schemacmds.c Remove various special checks around default roles 2016-05-06 14:06:50 -04:00
seclabel.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
sequence.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
tablecmds.c Remove various special checks around default roles 2016-05-06 14:06:50 -04:00
tablespace.c Remove various special checks around default roles 2016-05-06 14:06:50 -04:00
trigger.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
tsearchcmds.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
typecmds.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
user.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
vacuum.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
vacuumlazy.c Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL 2016-09-06 15:35:47 +01:00
variable.c Final pgindent + perltidy run for 9.6. 2016-08-15 13:42:51 -04:00
view.c Add location field to DefElem 2016-09-06 12:00:00 -04:00