33.6 Using Sequences Across Tables for Globally Unique IDs
Right, so you want to build a system where things need unique IDs across different tables. Maybe you’re stitching together events from a user action log and an admin audit log into a single timeline. Or perhaps you’re building a distributed system and you need to guarantee that an ID generated in your orders table in one database will never, ever clash with an ID generated in your invoices table in another.