Having used bitmasks for years as a C programmer I\'m attempting to do something similar in Postgres and it\'s not working as I expected. So here is a table definition with