I want to setup postgresql database

Try just:

pacman -Qi postgresql