Re: Redirecting select() output generates error

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Redirecting select() output generates error
Date: 2018-10-29 19:28:34
Message-ID: CAKFQuwZtiyhVei2R5UksQXHdxWbL50SevOP5oGKEsbR=i9MGZQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Oct 29, 2018 at 12:21 PM Rich Shepard <rshepard(at)appl-ecosys(dot)com>
wrote:

> On Mon, 29 Oct 2018, David G. Johnston wrote:
>
> > You seem to need to distinguish between the command line options to psql
> > and the meta commands that can be used within a script that is being
> > executed by psql.
>
> David,
>
> I'm running psql in a shell buffer within emacs, not at the shell
> prompt. The entire script is:
>

I'd say that emacs is doing something funky then. Running your script
using:

psql <<SQL
[...]
SQL
(or psql -f ...)

at a bash prompt should result in the expected outcome. Assuming that is
indeed the case someone else would need to comment on the emacs interaction.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2018-10-29 19:30:01 Re: Redirecting select() output generates error
Previous Message Rich Shepard 2018-10-29 19:21:16 Re: Redirecting select() output generates error