Re: Add partial :-variable expansion to psql \copy - Mailing list pgsql-hackers

From Christoph Berg
Subject Re: Add partial :-variable expansion to psql \copy
Date
Msg-id Z-u5KsJCRn2IEVja@msg.df7cb.de
Whole thread Raw
In response to Re: Add partial :-variable expansion to psql \copy  (Fabien Coelho <coelho@cri.ensmp.fr>)
Responses Re: Add partial :-variable expansion to psql \copy
Re: Add partial :-variable expansion to psql \copy
List pgsql-hackers
Re: Fabien Coelho
> (1) it seems that is the only command which is really full SQL hidden in a
> backslash command

Perhaps this form could be improved by changing `\copy (select) to file`
to something like `select \gcopy (to file)`. That might make :expansion
in the "select" part easier to handle.

I've heard several complaints that `\copy (select)` can't be wrapped
over several lines, so offering the alternative syntax in parallel to
\copy would also solve another problem.

Christoph



pgsql-hackers by date:

Previous
From: vignesh C
Date:
Subject: Re: in BeginCopyTo make materialized view using COPY TO instead of COPY (query).
Next
From: Pavel Stehule
Date:
Subject: Re: Add partial :-variable expansion to psql \copy