Re: Problems Importing table to pgadmin

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Problems Importing table to pgadmin
Дата
Msg-id efbc5665-5ea4-5dd8-bdaf-b2e0c721e511@hogranch.com
обсуждение исходный текст
Ответ на Re: Problems Importing table to pgadmin  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: Problems Importing table to pgadmin
Список pgsql-general
On 12/7/2016 3:28 PM, David G. Johnston wrote:
On the second image you are using double-quotes to delimit a string literal.  This is wrong.  PostgreSQL always uses single quotes to indicate literal string value double quotes are reserved for object identifiers (table names, column names, etc).


AND, COPY table from filename only works at the *SERVER* level, not at the user level, and can only be done by a database superuser.    the database server likely has no right to access files on your desktop.  In the psql shell, you can use \copy to do this, that actually does a COPY table FROM stdin;  then the psql client reads your file and pipes it to that COPY command, so the file is read by the client, and not the server.



-- 
john r pierce, recycling bits in santa cruz

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

Предыдущее
От: metaresolve
Дата:
Сообщение: Re: Problems Importing table to pgadmin
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: high transaction rate