Re: [HACKERS] Don't allow relative path for copy from file

2012-08-30 Thread Etsuro Fujita
> From: Robert Haas [mailto:robertmh...@gmail.com] > On Thu, Aug 16, 2012 at 2:11 AM, Etsuro Fujita > wrote: > > Agreed. I'd like to withdraw the patch sent in the earlier post, and propose > to > > update the documentation in the COPY reference page. Please find attached > a > > patch. > > I

Re: [HACKERS] Don't allow relative path for copy from file

2012-08-30 Thread Robert Haas
On Thu, Aug 16, 2012 at 2:11 AM, Etsuro Fujita wrote: > Agreed. I'd like to withdraw the patch sent in the earlier post, and propose > to > update the documentation in the COPY reference page. Please find attached a > patch. I think this is a good idea, but I didn't like the exact wording you

Re: [HACKERS] Don't allow relative path for copy from file

2012-08-15 Thread Etsuro Fujita
> From: Tom Lane [mailto:t...@sss.pgh.pa.us] > "Etsuro Fujita" writes: > > As described in the reference manual for COPY, we should to check file's path > > format not to allow relative path. Please find attached a patch. > > The argument for disallowing writing to a relative path is to make it

Re: [HACKERS] Don't allow relative path for copy from file

2012-08-15 Thread Tom Lane
"Etsuro Fujita" writes: > As described in the reference manual for COPY, we should to check file's path > format not to allow relative path. Please find attached a patch. The argument for disallowing writing to a relative path is to make it harder to accidentally overwrite a database file. That