Unable to get postgresql to work

I’ve been using Kubuntu for almost 1.5 year and just switched to openSUSE yesterday. I tried installing postgres but it’s not working. I’m getting the following message when opening postgres in konsole:

nayar@linux-2w4s:~> postgrespostgres does not know where to find the server configuration file.
You must specify the --config-file or -D invocation option or set the PGDATA environment variable.



What am i supposed to do? ON kubuntu, once you install postgresql, it runs on localhost automatically

Go to YaST admin tool, and choice System Service(Runlevel), then enable service(PostgreSQL) and save configuration.
Regards!

p.s. /var/lib/pgsql/data/ – pg_hba.cong and postgresql.conf
if you want to try(beta):
http://sourceforge.net/projects/epgsql/files/

I followed this guide Running PostgreSQL on openSUSE | xadmin.info

Then i uncommented some lines in postgres .conf files then it worked.

Thanks for the tip.