Postgresql – Efficient way to filter the "one" side by values in the "many" side in a one-to-many relationship between a table and another table?
I have a table, let's say, users that has a one to many relationship to another table called, say, users_attributes. The users_attributes table is a simple key-value type table with a foreign key column to the users table. Something like…