Skip site navigation (1) Skip section navigation (2)

COPY when 'filename' is a directory

From: Douglas Trainor <trainor(at)uic(dot)edu>
To: pgsql-bugs(at)postgresql(dot)org
Cc: trainor(at)uic(dot)edu
Subject: COPY when 'filename' is a directory
Date: 2002-01-16 23:47:46
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-patches
I'd like to report a bug in 7.1.3 psql (at least on a 64-bit Alpha Linux box).
Maybe someone can confirm this or maybe it's fixed in 7.2

The 7.1 documentation ( )
for COPY ala

    COPY table FROM 'filename'

says that if it fails you get feedback "ERROR: reason" and if it succeeds
you get feedback "COPY".  However, I goofed today and my filename was a
directory, and I did not get ERROR...  Here is a simplified version
demonstrating the lack of ERROR:

    fred(at)goo> psql goo
    Welcome to psql, the PostgreSQL interactive terminal.

    Type:  \copyright for distribution terms
           \h for help with SQL commands
           \? for help on internal slash commands
           \g or terminate with semicolon to execute query
           \q to quit

    goo=# DROP TABLE goober;
    goo=# CREATE TABLE goober ( family VARCHAR(25), x integer, y integer );
    goo=# COPY goober FROM '/usr/local/pgsql/';
    goo=# select count(*) from goober;
    (1 row)

    goo=# \q


pgsql-bugs by date

Next:From: Michael BeckstetteDate: 2002-01-17 10:43:24
Subject: Postmaster crash
Previous:From: Vardan GyurjyanDate: 2002-01-16 22:05:34
Subject: jdbc:postgress problem.

pgsql-patches by date

Next:From: Brent VernerDate: 2002-01-17 12:08:10
Subject: Re: COPY when 'filename' is a directory
Previous:From: Tom LaneDate: 2002-01-14 20:18:38
Subject: Re: Patches for AIX builds..

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group