Search Postgresql Archives

How to do a "CREATE DATABASE" and then connect to it?

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

 



After you do a "CREATE DATABASE", how do you programatically 
connect to what you just created?  

In the psql monitor, you'd use the "\c" command. 

If the DATABASE already exists when you connect to postgresql, 
you use the name when you connect (e.g. "dbname=..."). 

I'm getting the impression I need to do this in multiple steps, 
which is workable, but seems a little silly.



[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