Is there a reason we don't have t_self as one of the system columns that you can examine from SQL? I'd propose its addition otherwise.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных