X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2F26A8B9C33 for ; Thu, 10 Feb 2005 11:50:40 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 51101-07 for ; Thu, 10 Feb 2005 11:50:26 +0000 (GMT) Received: from hoggle.dreamhost.com (hoggle.dreamhost.com [66.33.197.5]) by svr1.postgresql.org (Postfix) with ESMTP id D72D48B9B86 for ; Thu, 10 Feb 2005 11:50:26 +0000 (GMT) Received: from 192.168.1.100 (pC19EB899.dip.t-dialin.net [193.158.184.153]) by hoggle.dreamhost.com (Postfix) with ESMTP id 27E45538C1 for ; Thu, 10 Feb 2005 03:50:25 -0800 (PST) Subject: Connecting without specifying a database From: Murray Cumming To: pgsql-interfaces Content-Type: text/plain Date: Thu, 10 Feb 2005 12:50:23 +0100 Message-Id: <1108036223.3706.12.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-3) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200502/32 X-Sequence-Number: 5277 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@murrayc.com www.murrayc.com www.openismus.com