I have a flag enum array that I create and store in the database with my program as a numeric value. Is there anyway with a Postgres function to check for whether or not a specific bit is set?
So it would be:
value1 = 1
value2 = 2
vaule3 = 4
....
value10 = 512
I want to check that 534 has the value2 flag. Is that possible?