Discussion:
Diferent Instances
(too old to reply)
Rodrigo Sakai
2004-02-10 12:13:42 UTC
Permalink
Hi,

We are using PostgreSQL for a lot of distinct databases, and so the problem is, when occurs an error on just one database and we have to restart the postmaster process, it kills all the others databases that do not have problem, because there is only one instance controling the databases. But we are making an ASP, so we should not run into this kind of problem.
I think abut a solution, if I make initdb for each database, instaling it inside a new folder, like initdb -D /postgresql/datadb1/ ...........
initdb -D /postgresql/datadb2/ and so on....! Then i think I can initialize each database one by one, and in the same way stop and restart them.
Is it a good idea or not??? Is there a better way to do what I want ???





=====================
Rodrigo Sakai
Database Administrator
***@2bfree.com.br
http://www.2bfree.com.br
Tel: (55) (11) 5083-5577
Fax: (55) (11) 5549-3598
=====================


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ***@postgresql.org so that your
message can get through to the mailing list cleanly
Bruno Wolff III
2004-02-10 13:19:46 UTC
Permalink
On Tue, Feb 10, 2004 at 10:13:42 -0200,
Post by Rodrigo Sakai
We are using PostgreSQL for a lot of distinct databases, and so the problem is, when occurs an error on just one database and we have to restart the postmaster process, it kills all the others databases that do not have problem, because there is only one instance controling the databases. But we are making an ASP, so we should not run into this kind of problem.
I think abut a solution, if I make initdb for each database, instaling it inside a new folder, like initdb -D /postgresql/datadb1/ ...........
initdb -D /postgresql/datadb2/ and so on....! Then i think I can initialize each database one by one, and in the same way stop and restart them.
Is it a good idea or not??? Is there a better way to do what I want ???
What kind of errors are occurring that require restarting postgres to clear?

You probably want to avoid running each database with a separate postmaster.

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

Loading...