3 ms·
How does PgDog handle a column like: `id INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY`
by Nelkins 2y ago
How does PgDog handle a column like:
`id INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY`
- levkk 2y agoReplace 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.