Postgresql – what is the equivalent of varbinary(10) in postgresql

bit-fields, postgresql, sqldatatypes

I'm trying to define a bit field of 10 bytes. In SQL Server I'd use varbinary(10). I know that bytea replaces varbinary (MAX) for images, but didn't find any documentation on limiting the number of bits in it.

Is there a way to do that?

Best Solution