Hacker News new | past | comments | ask | show | jobs | submit login

Neat.

You could avoid having to create a per-schema id function by passing the shard id and the sequence oid as params to the function, so you'd have default public.next_id(5,'insta5.table_id_seq'::regclass)




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

Search: