well solved this issue by giving BYPASSRLS and CREATDB . I don't know which one solved.
one more thing i want to add is that while trying to resolve it i managed to get rid of above error and got connection error I think the the changing of role resolved the connection issue but i still fully don't understand what resolved the vector problem because db already had superuser role.