dbTalk Databases Forums  

template0

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss template0 in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Marcel Wolf
 
Posts: n/a

Default template0 - 02-05-2004 , 03:53 PM






Guys
I am trying to log on to the template0 to create a new database. The
error I get is ..

Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL:
Database "template0" is not currently accepting connections .

How do I get the template0 to accept connections? I can get template1
to accept them. But then I have a problem with new databases inheriting
tables from the first database. My pg_hba.conf file is



# TYPE DATABASE USER IP-ADDRESS IP-MASK
METHOD

local all all
trust
# IPv4-style local connections:
host all all 127.0.0.1 255.255.255.0
trust
host all postgre 192.168.1.5
255.255.255.0 trust

# IPv6-style local connections:
host all all ::1
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff trust

Thanks for the help
Marcel Wolf


Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: template0 - 02-05-2004 , 04:21 PM






"Marcel Wolf" <mwolfs (AT) comcast (DOT) net> writes:
Quote:
How do I get the template0 to accept connections?
It's not supposed to.

Quote:
I can get template1
to accept them. But then I have a problem with new databases inheriting
tables from the first database.
The database used as the template is specified in your CREATE DATABASE
command. It has nothing to do with which DB you are connected to.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match



Reply With Quote
  #3  
Old   
Josh Berkus
 
Posts: n/a

Default Re: template0 - 02-05-2004 , 04:42 PM



Marcel,

See:
http://techdocs.postgresql.org/techd...enturesep1.php

--
-Josh Berkus
Aglio Database Solutions
San Francisco


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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.