On Mon, 2005-02-28 at 16:43, Mohsen Pahlevanzadeh wrote: > Dears,I need to connect to the PostgreSQL without choosing database in C. > Please guide me...... You have to choose a database. You can choose template1 which should always be there. Connections in libpq are to specific databases. ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq