I saw this in migration
enable_extension 'uuid-ossp'
As far as I know, uuid is a long unique string based on some RFCs and this allows db (in this case pg) to have a column type like uuid
my question is: why is this type of column needed, not just a row column? is it to replace a regular column with an integer id and instead indicate uuid as id?
Is there any advantage to using uuid since id instead of having a column of type string contains uuid?
source
share