From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Dominique Devienne <ddevienne@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Cannot COPY xmin?
Date: Tue, 27 Feb 2024 19:26:14 +0100
Message-ID: <202402271826.nyibacg4lzq3@alvherre.pgsql> (raw)
In-Reply-To: <CAFCRh-8LTZrtELwXsO04XT83sn2v_GpHWQ3=q11wLPi2yCL5ug@mail.gmail.com>
On 2024-Feb-27, Dominique Devienne wrote:
> Hi. I just tried adding the xmin pseudo-column to my COPY,
> and I get an error.
I suggest you find some other way to achieve whatever it is you think
you'll achieve with this. It's not reliable and you'll regret it
eventually. Maybe take a step back and let us know why you want to copy
xmin in the first place?
> Do I need to switch to a `COPY (select xmin, cols... from tab) ...` to
> access xmin?
If your ultimate objective is to shoot your feet, then yes, this will
work.
--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/
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-general@postgresql.org
Cc: alvherre@alvh.no-ip.org, ddevienne@gmail.com
Subject: Re: Cannot COPY xmin?
In-Reply-To: <202402271826.nyibacg4lzq3@alvherre.pgsql>
References: <CAFCRh-8LTZrtELwXsO04XT83sn2v_GpHWQ3=q11wLPi2yCL5ug@mail.gmail.com> <202402271826.nyibacg4lzq3@alvherre.pgsql>
* 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