Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hedI5-0000xM-F9 for pgsql-bugs@arkaria.postgresql.org; Sat, 22 Jun 2019 10:30:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hedI3-00010Y-4M for pgsql-bugs@arkaria.postgresql.org; Sat, 22 Jun 2019 10:30:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1heWTQ-00079U-Ab for pgsql-bugs@lists.postgresql.org; Sat, 22 Jun 2019 03:13:52 +0000 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1heWTJ-0005cV-NA for pgsql-bugs@lists.postgresql.org; Sat, 22 Jun 2019 03:13:51 +0000 Received: by mail-qk1-x72d.google.com with SMTP id i125so5927401qkd.6 for ; Fri, 21 Jun 2019 20:13:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=t3jEHmxJPdd2GZJUDwgVh6j1p2kP1+v3wmHKgDdWaAk=; b=O3BSaRSr+DgMlcVvl8SnMRkTd62d9PBbJhJeW84vM2daxEfluidtIGTvMUXx2CccQ1 EXnMMRScxbJ+0JgN8FrzubZKHNVUWhbyyX5/ByjOFFAldZBaTBeillnY/DTJdy0WyhLd AD2OSk6m6j6Yrb8Hn68BgYC/M+mcbMxqLTP9TNeoqTs7Pj6SIggWp37DEtjvHPHYJfrn wHmIUxrY5NR9uMU28ZxbWwRgYpSYwiWx3g0JjBNZsEvi6lIGNLAeRtOvrlC0N0glKY+3 05hKlQj5gyISLYQSbR3Zjw2ETw9JknEoa3TXDKDNer6ZFB0Vtf7IH+qh3Gwre8BTTDse apXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=t3jEHmxJPdd2GZJUDwgVh6j1p2kP1+v3wmHKgDdWaAk=; b=HCs9SNdfzRY8mPoqUpVgdahCHam2inpHVlyO943RobjjCHuH+Sq/uzDTrKuvmM/AbI dFCGXllkPFOpFwUWlm0n/ebqXC9G/1J3vH27b0PvkCtN+2a5xDjVAADwYvQCE9vsnavj CLo4YmA2JijGW9UVni5L+2NiF1uzlJiX8g/JWMlbQSKk8W9pooqTN1zk0HPq/hupZR8W tS2n6LQ2khRX256RsEFYo9HUWD0YZsWRQcB+W1wY0lCnffdzAkyHqC6gFAQnnCuJ6zBS VtyxpeE8s13JoEXZ4fSoDaqnmur1JUm006bBa+L+KaVk7NIdVnWskyFfMGGE38VnVGc3 g0aA== X-Gm-Message-State: APjAAAXs07P+51CyCgJRnwlPWyFJ9lK24rMlawws+vn0BUBpJA8WvxCQ SXAOhuGuYDvqlj51uJX6FxHriEO4 X-Google-Smtp-Source: APXvYqxTDIwlJFC6UHlNdWx+5h8eviA5zFE+GGkXfsktYtXVj2NIRNPXsCFdb95aP64dyLpZO41KNA== X-Received: by 2002:a37:d16:: with SMTP id 22mr94141888qkn.232.1561173224187; Fri, 21 Jun 2019 20:13:44 -0700 (PDT) Received: from ?IPv6:2601:14b:4303:20ae:1134:6734:3b4e:a7fe? ([2601:14b:4303:20ae:1134:6734:3b4e:a7fe]) by smtp.gmail.com with ESMTPSA id a6sm2219404qkd.135.2019.06.21.20.13.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Jun 2019 20:13:43 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-88E5D02A-F522-4079-90A4-F2C65AEDB898 Mime-Version: 1.0 (1.0) Subject: Re: BUG #15867: psql \copy from program does not work From: "Edward J. Sabol" X-Mailer: iPad Mail (16F203) In-Reply-To: Date: Fri, 21 Jun 2019 23:13:42 -0400 Cc: pgsql-bugs@lists.postgresql.org Content-Transfer-Encoding: 7bit Message-Id: <3684FC06-B137-4E11-B28B-62820BB2902A@gmail.com> References: <15867-3f48bde7fead3e68@postgresql.org> To: Jeff Janes List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail-88E5D02A-F522-4079-90A4-F2C65AEDB898 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Jun 21, 2019, at 10:46 PM, Jeff Janes wrote: >> \copy sometable from program '/bin/echo' >>=20 >> The following error message is returned: >>=20 >> program: No such file or directory >=20 > Works, for me, unless I use an ancient psql program (before 9.3). I was about to swear I was using the psql from 10.9, but you=E2=80=99re righ= t.... I somehow picked up a *very* ancient version of psql in my path, and m= y tests show it definitely works as documented when I fix my path and use ps= ql 10.9. How embarrassing.... My sincerest apologies for the false bug repor= t and for taking up any of your time. Thank you for the quick response! Regards, Ed --Apple-Mail-88E5D02A-F522-4079-90A4-F2C65AEDB898 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On J= un 21, 2019, at 10:46 PM, Jeff Janes <jeff.janes@gmail.com> wrote:
\copy sometable from program '/bin/ec= ho'

The following error message is returned:

program: No such file or directory

Works= , for me, unless I use an ancient psql program (before 9.3).

I was about to swear I was using the psql from 1= 0.9, but you=E2=80=99re right.... I somehow picked up a *very* ancient versi= on of psql in my path, and my tests show it definitely works as documented w= hen I fix my path and use psql 10.9. How embarrassing.... My sincerest apolo= gies for the false bug report and for taking up any of your time. Thank you f= or the quick response!

Regards,
Ed
<= div>
= --Apple-Mail-88E5D02A-F522-4079-90A4-F2C65AEDB898--