Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How does PgDog handle a column like:

`id INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY`



Replace it with a function that makes sure the id coming out matches the sharding schema. Assuming it's coming from a sequence, we're consuming it until we get a matching number. It would be good to know what is behind the generated column in your use case.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: