pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: John Norman <john@7fff.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14645: Can't use psql from within program used by "copy ... from program" script?
Date: Sat, 06 May 2017 14:28:04 -0400
Message-ID: <28102.1494095284@sss.pgh.pa.us> (raw)
In-Reply-To: <CAGcH5RHAm7E5nGUhexFPH3NehMGx17PKc6yWJQekHc_j0DeU=A@mail.gmail.com>
References: <20170506171803.24361.76643@wrigleys.postgresql.org>
	<19511.1494092702@sss.pgh.pa.us>
	<CAGcH5RHAm7E5nGUhexFPH3NehMGx17PKc6yWJQekHc_j0DeU=A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

John Norman <john@7fff.com> 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



view thread (7+ messages)  latest in thread

Message-ID: <28102.1494095284@sss.pgh.pa.us>
Permalink:  ../28102.1494095284@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28102.1494095284@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, john@7fff.com
  Subject: Re: BUG #14645: Can't use psql from within program used by "copy ... from program" script?
  In-Reply-To: <28102.1494095284@sss.pgh.pa.us>
  References: <20170506171803.24361.76643@wrigleys.postgresql.org> <19511.1494092702@sss.pgh.pa.us> <CAGcH5RHAm7E5nGUhexFPH3NehMGx17PKc6yWJQekHc_j0DeU=A@mail.gmail.com> <28102.1494095284@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox