Hacker News new | ask | show | jobs
by pmarreck 924 days ago
Good point. There are implementations of this in various languages, then, that are linked in the blog post.

I'm not sure how difficult it would be to tell postgres to only generate the identifier if it's not part of the inserted data already... but that might be a nice compromise

1 comments

I think that's what default value achieves. If it's not provided, it generates one, if it is provided, it's used.
It is! I had looked it up in the meantime.