pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedWhat is the exact Deal with Maintenance DB ?
3+ messages / 3 participants
[nested] [flat]
* What is the exact Deal with Maintenance DB ?
@ 2005-12-01 17:20 Aydın Toprak <aydin.toprak@intengo.com>
0 siblings, 2 replies; 3+ messages in thread
From: Aydın Toprak @ 2005-12-01 17:20 UTC (permalink / raw)
To: pgsql-jdbc
Hiii,
I trying to understand what is the exact usage of Matenance DB
"postgres" ...
,I think It is a template like "template1" ... and If we want to
generate a database we create new one from "postgres" template...
However I cant do it, but I can create a new databse from template1 ...
I really dont understand the functionality of "postgres" ...
If I create a connection from template 1, and create another connection
from the conneciton 1, It clones the DB on the first conneciton to the
second ...
If I drop the DB from one connection, then the second conneciton looses
the DB as well ...
in what circumtances, we may need two conneciton on the same Posqgresql
server ?...
sorry I am really confused about that...
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: What is the exact Deal with Maintenance DB ?
@ 2005-12-01 17:33 Csaba Nagy <nagy@ecircle-ag.com>
parent: Aydın Toprak <aydin.toprak@intengo.com>
1 sibling, 0 replies; 3+ messages in thread
From: Csaba Nagy @ 2005-12-01 17:33 UTC (permalink / raw)
To: Aydýn Toprak <aydin.toprak@intengo.com>; +Cc: pgsql-jdbc
This (JDBC) is the wrong list for this question (GENERAL would have been
better), but basically: you can't create a new data base based on
template1 if somebody else is also connected to it. You can only use
template1 if you're the ONLY one connection to it. This will make you
impossible to create new data bases if somebody connects to template1
and forgets to disconnect for ages...
So the postgres data base is used to connect to, and template1 to be
used as a template. You shouldn't connect anymore to template1, so it
can be always used as a template without problems.
HTH,
Csaba.
On Thu, 2005-12-01 at 18:20, Aydın Toprak wrote:
> Hiii,
>
> I trying to understand what is the exact usage of Matenance DB
> "postgres" ...
>
> ,I think It is a template like "template1" ... and If we want to
> generate a database we create new one from "postgres" template...
>
> However I cant do it, but I can create a new databse from template1 ...
> I really dont understand the functionality of "postgres" ...
>
> If I create a connection from template 1, and create another connection
> from the conneciton 1, It clones the DB on the first conneciton to the
> second ...
>
> If I drop the DB from one connection, then the second conneciton looses
> the DB as well ...
>
>
> in what circumtances, we may need two conneciton on the same Posqgresql
> server ?...
>
> sorry I am really confused about that...
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: What is the exact Deal with Maintenance DB ?
@ 2005-12-01 17:49 Jaime Casanova <systemguards@gmail.com>
parent: Aydın Toprak <aydin.toprak@intengo.com>
1 sibling, 0 replies; 3+ messages in thread
From: Jaime Casanova @ 2005-12-01 17:49 UTC (permalink / raw)
To: Aydýn Toprak <aydin.toprak@intengo.com>; +Cc: pgsql-jdbc
On 12/1/05, Aydýn Toprak <aydin.toprak@intengo.com> wrote:
> Hiii,
>
> I trying to understand what is the exact usage of Matenance DB
> "postgres" ...
>
> ,I think It is a template like "template1" ... and If we want to
> generate a database we create new one from "postgres" template...
>
> However I cant do it, but I can create a new databse from template1 ...
> I really dont understand the functionality of "postgres" ...
>
http://archives.postgresql.org/pgsql-hackers/2005-11/msg00904.php
> If I create a connection from template 1, and create another connection
> from the conneciton 1, It clones the DB on the first conneciton to the
> second ...
>
> If I drop the DB from one connection, then the second conneciton looses
> the DB as well ...
>
>
> in what circumtances, we may need two conneciton on the same Posqgresql
> server ?...
>
> sorry I am really confused about that...
>
>
--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2005-12-01 17:49 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-12-01 17:20 What is the exact Deal with Maintenance DB ? Aydın Toprak <aydin.toprak@intengo.com>
2005-12-01 17:33 ` Csaba Nagy <nagy@ecircle-ag.com>
2005-12-01 17:49 ` Jaime Casanova <systemguards@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox