We already have pg_xact_commit_timestamp() that returns the timestamp of the commit.
It may be better to have one single function returning both timestamp and origin for a given transaction ID.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных