| From: | John R Pierce <pierce(at)hogranch(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Problems Importing table to pgadmin |
| Date: | 2016-12-07 23:47:10 |
| Message-ID: | efbc5665-5ea4-5dd8-bdaf-b2e0c721e511@hogranch.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Rob Sargent | 2016-12-07 23:54:23 | Re: high transaction rate |
| Previous Message | metaresolve | 2016-12-07 23:37:25 | Re: Problems Importing table to pgadmin |