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

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: How to change the pgsql source code and build it??
Дата
Msg-id 53A23F05.7030505@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: How to change the pgsql source code and build it??  (Shreesha <shreesha1988@gmail.com>)
Список 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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: David G Johnston
Дата:
Сообщение: Re: idle_in_transaction_timeout
Следующее
От: Matheus de Oliveira
Дата:
Сообщение: Re: How about a proper TEMPORARY TABLESPACE?