Re: Add partial :-variable expansion to psql \copy
Christoph Berg <myon@debian.org>
From: Christoph Berg <myon@debian.org>
To: Fabien Coelho <coelho@cri.ensmp.fr>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-04-01T10:00:10Z
Lists: 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
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix psql's "\g target" meta-command to work with COPY TO STDOUT.
- 6d3ede5f1c65 12.0 cited