'how to store ctid in postgres table

In oracle rowid can can be used as a datatype to store the rowid, like

create table $name (id rowid);

unlike in postgres

create table $name (id ctid)

throws Unknown PostgreSQL data type how to handle this scenario?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source