POSTGRESQL: my fix for the wrong BINARY column type
(cherry picked from commit 56e5f085b6191bf5f3068226c009ecab9b481851)
(cherry picked from commit f7fef77afeda546e3918fb5fcf56f09628ae544c)
Merge branch 'my_fixes'