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

Re: COPY when 'filename' is a directory

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Brent Verner <brent(at)rcfile(dot)org>
Cc: Douglas Trainor <trainor(at)uic(dot)edu>, pgsql-bugs(at)postgresql(dot)org,pgsql-patches(at)postgresql(dot)org
Subject: Re: COPY when 'filename' is a directory
Date: 2002-02-23 21:45:45
Message-ID: 200202232145.g1NLjkn11672@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-patches
OK'ed by Peter.

Patch applied.  Thanks.

---------------------------------------------------------------------------


Brent Verner wrote:
> [2002-01-17 07:08] Brent Verner said:
> | [2002-01-16 17:47] Douglas Trainor said:
> | | 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 attached patch is for 7.2, but might apply (with some fuzz) to 7.1.x.
> | 
> | files:
> |   src/backend/commands/copy.c
> |   src/bin/psql/copy.c
> | 
> | note:
> |   Add fstat / S_ISDIR checks to make sure we're not trying to use a directory
> |   for COPY TO/FROM.
> 
> ...too early in the AM.  The proper/complete patch is attached this
> time.
> 
>   b

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

Responses

pgsql-bugs by date

Next:From: Tom LaneDate: 2002-02-24 01:27:47
Subject: Re: COPY when 'filename' is a directory
Previous:From: Bruce MomjianDate: 2002-02-23 02:38:05
Subject: Re: Bug #597: ResultSet.next() throws NullPointerException

pgsql-patches by date

Next:From: Bruce MomjianDate: 2002-02-23 21:48:21
Subject: Re: Cygwin plperl patch
Previous:From: Bruce MomjianDate: 2002-02-23 21:25:20
Subject: Re: Makefile.aix patch for shlib's

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