Amit Kumar Khare <skamit2000(at)yahoo(dot)com> writes:
> (1) I ran postgres in interactive mode. it showed me
> "backend>" prompt. now how to get out of it?
Control-D. See the postgres reference page:
http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/app-postgres.html
regards, tom lane