xid type? (was :) - Mailing list pgsql-general

From Christophe Pettus
Subject xid type? (was :)
Date
Msg-id F8488A2C-22D2-410E-A899-4F64887748E7@thebuild.com
Whole thread Raw
In response to  (Fabrice Chapuis <fabrice636861@gmail.com>)
List pgsql-general

> On May 15, 2023, at 08:41, Fabrice Chapuis <fabrice636861@gmail.com> wrote:
> What is the xid type and how can I cast integer value to make pg_xact_commit_timestamp to work?

The xid type is... xid.  You'll need to cast as a string instead of an integer:

xof=# select pg_xact_commit_timestamp('53013547'::xid);
   pg_xact_commit_timestamp
-------------------------------
 2023-03-31 09:12:07.673883-07
(1 row)




pgsql-general by date:

Previous
From: Fabrice Chapuis
Date:
Subject:
Next
From: Kirk Wolak
Date:
Subject: Re: Adding SHOW CREATE TABLE