Re: Can't quote_literal with COPY FROM PROGRAM

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Mark Mikulec <mark(at)mikutech(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Can't quote_literal with COPY FROM PROGRAM
Date: 2018-12-31 20:52:57
Message-ID: CAKFQuwYCQdJ6PDfqyYOw69KnmFXjMvZiHviXhse+o6VsvDdvmw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Monday, December 31, 2018, Mark Mikulec <mark(at)mikutech(dot)com> wrote:
>
> Does anyone know how to make COPY FROM PROGRAM take the output literally?
>

Not that I can think of. I’d avoid COPY FROM PROGRAM and move the logic to
psql. Roughly: \set varname `cmd`; select :’varname’;

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mark Mikulec 2018-12-31 20:58:46 Re: Can't quote_literal with COPY FROM PROGRAM
Previous Message Adrian Klaver 2018-12-31 20:52:29 Re: Can't quote_literal with COPY FROM PROGRAM