Fix for bytea bug in postgresql interface