xid type? (was :)

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема xid type? (was :)
Дата
Msg-id F8488A2C-22D2-410E-A899-4F64887748E7@thebuild.com
обсуждение исходный текст
Ответ на  (Fabrice Chapuis <fabrice636861@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Fabrice Chapuis
Дата:
Сообщение:
Следующее
От: Kirk Wolak
Дата:
Сообщение: Re: Adding SHOW CREATE TABLE