pgsql: Add a HINT for client-vs-server COPY failure cases.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Add a HINT for client-vs-server COPY failure cases.
Дата
Msg-id E1bhTy2-0000eV-56@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4f405c8ef4704b7fa7fd8ac14a66c5f5d13722c4

Modified Files
--------------
src/backend/commands/copy.c | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Add location field to DefElem
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Doc: minor documentation improvements about extensions.