Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d74Rn-0008Do-4j for pgsql-bugs@arkaria.postgresql.org; Sat, 06 May 2017 18:28:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d74Rm-0001Oz-Nb for pgsql-bugs@arkaria.postgresql.org; Sat, 06 May 2017 18:28:50 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d74R6-00006h-IQ for pgsql-bugs@postgresql.org; Sat, 06 May 2017 18:28:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d74R3-0000UU-VY for pgsql-bugs@postgresql.org; Sat, 06 May 2017 18:28:07 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v46IS4FO028103; Sat, 6 May 2017 14:28:04 -0400 From: Tom Lane To: John Norman cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14645: Can't use psql from within program used by "copy ... from program" script? In-reply-to: References: <20170506171803.24361.76643@wrigleys.postgresql.org> <19511.1494092702@sss.pgh.pa.us> Comments: In-reply-to John Norman message dated "Sat, 06 May 2017 12:59:53 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28101.1494095284.1@sss.pgh.pa.us> Date: Sat, 06 May 2017 14:28:04 -0400 Message-ID: <28102.1494095284@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org John Norman writes: > I'm running this all locally on my laptop. > I checkout stdout and stderr: Nothing. Hmph ... how are you starting the server exactly? I now notice that you're running on OS X ... what version of that? Do you have SIP enabled? SIP has been known to break stuff like this; in particular I'm thinking of its habit of silently suppressing key environment variables like DYLD_LIBRARY_PATH at inopportune times. If your setup is such that your psql needs that set to start correctly, that could be a place to look for an explanation. A related thought is that maybe PATH in the server is different from what you have interactively, so that it's not finding psql, or finding the wrong copy. Specifying a full path to psql in the invoked script would help narrow that down. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs