Search Postgresql Archives

postgres bash prompt error while user creation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello group
  i want to create a shell script  in that i want to create postgresql
user and database.both this task are created properly and executed
properly but after user and DB creation i am there on ( -bash-3.00$  )
and i wanna come back to [root@localhost:localdomain ~]#  and my
script is
#!/bin/bash
su -l postgres;
psql -U postgres -c "CREATE USER admin27 WITH PASSWORD 'admin27'
CREATEDB;" template1
psql -U admin27 -c "CREATE DATABASE emcc27;" template1 \q exit;
plzz help me to back to root from postgres bash prompt


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux