Andrus wrote:
Then redesign this as a many to many relation. ...This means adding separate row for each department into permission table.
Not really. You can of course store an Array of department IDs in that same table. That would probably cause the minimum impact on your queries too. ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org