I have a table in SQL Server which has a column of type hierarchyid, the issue is that I can't find the equivalent datatype for this in PostgreSQL.
CREATE TABLE dbo.exampleTable{
   id int;
   name varchar(255);
   level hierarchyid not null;
}
How would I write the equivalent in PostgreSQL?
There is no a direct equivalent datatype in PostgreSQL and without more information on your use case, as Tim correctly says in his comment it is difficult to provide a full answer.
You do have 2 options:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With