Re: How to change the pgsql source code and build it??

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: Shreesha <shreesha1988(at)gmail(dot)com>
Cc: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: How to change the pgsql source code and build it??
Date: 2014-06-19 01:38:13
Message-ID: 53A23F05.7030505@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 06/19/2014 01:50 AM, Shreesha wrote:

> However in my case, I don't know why there wasn't a default database
> with name 'root' got created or why the server rejects the client when
> it tries to connect to the default database.

Take a look at the initdb manual, the tutorial, and the
installation/system administration documentation.

> Can anyone shed some light on
> 1) when the default database gets created

By initdb - see the initdb manual.

> 2) how is this database 'name' is decided? Or what is the name of the
> default database name?

See the initdb manual.

> 3) Is there any other places in the database server code where this
> check is applied?

Wherever you connect, libpq picks the default database = the current
username.

> Upon looking at the error I got, I believe the code is searching for the
> database name == user name. If anyone can give some input on the code,
> it would be helpful!

libpq

I think you probably need to move this to pgsql-general, Stack Overflow,
etc. It's not really on topic for pgsql-hackers.

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Matheus de Oliveira 2014-06-19 01:39:37 Re: How about a proper TEMPORARY TABLESPACE?
Previous Message David G Johnston 2014-06-19 01:36:26 Re: idle_in_transaction_timeout