Re: [GENERAL] How to do a CREATE DATABASE and then connect to it?

2006-06-04 Thread Joseph Brenner
Terry Lee Tucker [EMAIL PROTECTED] wrote: Joseph Brenner [EMAIL PROTECTED] wrote: Joseph Brenner wrote: After you do a CREATE DATABASE, how do you programatically connect to what you just created? It's not a terribly major point, I'm just wondering if it's true that there's

Re: [GENERAL] How to do a CREATE DATABASE and then connect to it?

2006-06-04 Thread Martijn van Oosterhout
On Sun, Jun 04, 2006 at 02:24:32PM -0700, Joseph Brenner wrote: I think there are two different connects we're talking about here, one is the connection to the postgresql, the other is the connection to the database (i.e. the dbname, which probably should've been called the catalog). My

Re: [GENERAL] How to do a CREATE DATABASE and then connect to it?

2006-06-03 Thread Terry Lee Tucker
On Saturday 03 June 2006 04:07 am, Joseph Brenner [EMAIL PROTECTED] thus communicated: -- -- Joshua D. Drake [EMAIL PROTECTED] wrote: -- -- Joseph Brenner wrote: -- -- After you do a CREATE DATABASE, how do you programatically -- connect to what you just created? -- -- In the psql

Re: [GENERAL] How to do a CREATE DATABASE and then connect to it?

2006-06-03 Thread Frank Finner
On Sat, 3 Jun 2006 04:36:59 -0400 Terry Lee Tucker [EMAIL PROTECTED] thought long, then sat down and wrote: On Saturday 03 June 2006 04:07 am, Joseph Brenner [EMAIL PROTECTED] thus communicated: -- -- Joshua D. Drake [EMAIL PROTECTED] wrote: -- -- Joseph Brenner wrote: -- -- After

[GENERAL] How to do a CREATE DATABASE and then connect to it?

2006-06-02 Thread Joseph Brenner
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

Re: [GENERAL] How to do a CREATE DATABASE and then connect to it?

2006-06-02 Thread Joshua D. Drake
Joseph Brenner wrote: 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