Nice to see this on HN :)<p>The high-level is: You enable a setting and every CREATE SCHEMA creates a new shard. All the tables in the schema will be co-located so you can have efficient joins & foreign keys between the tables.<p>On top of that, you can also have reference tables that are replicated to all nodes, again for fast joins & foreign keys with all schemas.<p>Everything else is about making every PostgreSQL feature work as seamlessly as if there was no sharding. You can still do things like transactions across schemas, create and use custom types, access controls, work with other extensions, use procedures, etc.