Re: Cannot COPY xmin? - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Cannot COPY xmin?
Date
Msg-id 202402271826.nyibacg4lzq3@alvherre.pgsql
Whole thread Raw
In response to Cannot COPY xmin?  (Dominique Devienne <ddevienne@gmail.com>)
Responses Re: Cannot COPY xmin?
List pgsql-general
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/



pgsql-general by date:

Previous
From: Dominique Devienne
Date:
Subject: Cannot COPY xmin?
Next
From: Dominique Devienne
Date:
Subject: Re: Cannot COPY xmin?