logo       
Google Custom Search
    AddThis Social Bookmark Button

Connecting without specifying a database: msg#00031

Subject: Connecting without specifying a database
Can PQconnectdb(), or something else, be used without specifying the
dbname in the connection string? I want to connect just so that I can
create a database that does not exist yet.

When I don't specify the dbname, PQconnectdb() tries to connect to a
database with the same name as the user, and then complains that it does
not exist. Is it really necessary for each user to have an empty
database like this?

-- 
Murray Cumming
murrayc@xxxxxxxxxxx
www.murrayc.com
www.openismus.com


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend



<Prev in Thread] Current Thread [Next in Thread>