If you want to access the rows via full path (you need this column in the table), and need not to reference this table from another one, you can use the full path as primary key.
The effectivity of the index and proper column type depends on its implementation. Which database did you mean? PostgreSQL?