Unix Technical Forum

Remove Postgres from Solaris 10

This is a discussion on Remove Postgres from Solaris 10 within the pgsql Admins forums, part of the PostgreSQL category; --> Hi Joshua, I think I have to explain it a little more detailed - my product uses a postgres ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 05-02-2008, 06:05 AM
=?iso-8859-1?Q?Thomas_Br=E4utigam?=
 
Posts: n/a
Default Re: Remove Postgres from Solaris 10

Hi Joshua,

I think I have to explain it a little more detailed

- my product uses a postgres database with the standart config (ports etc.)
- with Solaris 10 postgres is already installed as standart
- I need to replace this Solaris 10 postgres installation with my standart postgres database of my product

That is the reason I need to remove the standart postgres installation fromSolaris 10 that I can use my own postgres database.

My concern is how I can remove this standart Solaris 10 postgres database as quick and efficient as possible that I can put in my postgres database?

Cheers Thomas



-----Original Message-----
From: Joshua D. Drake [mailto:jd@commandprompt.com]
Sent: Mittwoch, 30. April 2008 02:33
To: Thomas Bräutigam
Cc: J.K.Shah@Sun.COM; Robert.Lor@Sun.COM; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Remove Postgres from Solaris 10

On Wed, 30 Apr 2008 01:59:08 +0200
Thomas Bräutigam <thomas.braeutigam@nexustelecom.com> wrote:

> Hi Joshua
>
> The problem is this that I need this ports for my default postgres
> database.
>
> Is it than possible to have 2 default postgres databases in parallel?
> Same ports etc.....?


I am afraid I don't understand what you are asking. You can't have two postgresql installations bound to the same port. You can have two postgresql installations pointing to different ports on the same machine.

Joshua D. Drake


--
The PostgreSQL Company since 1997: http://www.commandprompt.com/ PostgreSQLCommunity Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/ Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate





--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 05-02-2008, 06:05 AM
Jignesh K. Shah
 
Posts: n/a
Default Re: Remove Postgres from Solaris 10

Here are my two cents:

You dont want to remove packages installed with Solaris by default..
However you may use your own Postgres packages or binaries in different
location and not enable Postgres by default. (PostgreSQL is an integral
part of Solaris 10 )

Don't forget some of Solaris's own tools like SunMC now uses the bundled
postgres in the operating system and hence depends on its existence and
tested against it.

http://www.sun.com/bigadmin/sundocs/...s/sunmcnew.jsp


Removing PostgreSQL packages installed by default is not supported since
upgrades to the Operating system will depend on those file installations
to exist out in the preset locations. However that does not mean you
cannot have your own binaries and use them at the default port. The
default database is not enabled by default which means there is no
collision of port numbers unless you want both database clusters to be
enabled. If thats the case than changing Port numbers in either your
database cluster or the default db instance (if init'ed by using svcadm
start postgres_82:default for the first time) in
/var/postgres/8.2/data/postgresql.conf should be fairly easy.


Other option is to use "OpenSolaris" CD images which does not have
PostgreSQL installed by default as part of the "CD image" install as of now.

http://opensolaris.org/os/project/in...sources/getit/

-Jignesh


Thomas Bräutigam wrote:
> Hi Joshua,
>
> I think I have to explain it a little more detailed
>
> - my product uses a postgres database with the standart config (ports etc.)
> - with Solaris 10 postgres is already installed as standart
> - I need to replace this Solaris 10 postgres installation with my standart postgres database of my product
>
> That is the reason I need to remove the standart postgres installation from Solaris 10 that I can use my own postgres database.
>
> My concern is how I can remove this standart Solaris 10 postgres database as quick and efficient as possible that I can put in my postgres database?
>
> Cheers Thomas
>
>
>
> -----Original Message-----
> From: Joshua D. Drake [mailto:jd@commandprompt.com]
> Sent: Mittwoch, 30. April 2008 02:33
> To: Thomas Bräutigam
> Cc: J.K.Shah@Sun.COM; Robert.Lor@Sun.COM; pgsql-admin@postgresql.org
> Subject: Re: [ADMIN] Remove Postgres from Solaris 10
>
> On Wed, 30 Apr 2008 01:59:08 +0200
> Thomas Bräutigam <thomas.braeutigam@nexustelecom.com> wrote:
>
>
>> Hi Joshua
>>
>> The problem is this that I need this ports for my default postgres
>> database.
>>
>> Is it than possible to have 2 default postgres databases in parallel?
>> Same ports etc.....?
>>

>
> I am afraid I don't understand what you are asking. You can't have two postgresql installations bound to the same port. You can have two postgresql installations pointing to different ports on the same machine.
>
> Joshua D. Drake
>
>
> --
> The PostgreSQL Company since 1997: http://www.commandprompt.com/ PostgreSQL Community Conference: http://www.postgresqlconference.org/
> United States PostgreSQL Association: http://www.postgresql.us/ Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
>
>
>
>
>


--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 05-02-2008, 06:05 AM
Joshua D. Drake
 
Posts: n/a
Default Re: Remove Postgres from Solaris 10

On Wed, 30 Apr 2008 05:10:00 +0200
Thomas Bräutigam <thomas.braeutigam@nexustelecom.com> wrote:

> Hi Joshua,
>
> I think I have to explain it a little more detailed
>
> - my product uses a postgres database with the standart config (ports
> etc.)
> - with Solaris 10 postgres is already installed as standart
> - I need to replace this Solaris 10 postgres installation with my
> standart postgres database of my product


Why? Why not use the one that Solaris ships with?

Joshua D. Drake

--
The PostgreSQL Company since 1997: http://www.commandprompt.com/
PostgreSQL Community Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIF/CCATb/zqfZUUQRAkwRAJ49jdjxgCsXb8yxUduLs24v1oSIOgCfZ+Y6
Vvyh4dNh30rnLqDxXxkeHq8=
=AF7T
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 05-02-2008, 06:05 AM
=?iso-8859-1?Q?Thomas_Br=E4utigam?=
 
Posts: n/a
Default Re: Remove Postgres from Solaris 10

Hi Jignesh

What things do I all need to take care when I want to run both postgres databases on the same box. Like the Solaris 10 postgres db and my postgres db.

What parameters to I need to change in the postgresql.conf file? Is there something else I need to take care?

Cheers Thomas

-----Original Message-----
From: J.K.Shah@Sun.COM [mailto:J.K.Shah@Sun.COM]
Sent: Mittwoch, 30. April 2008 05:58
To: Thomas Bräutigam
Cc: Joshua D. Drake; Robert.Lor@Sun.COM; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Remove Postgres from Solaris 10

Here are my two cents:

You dont want to remove packages installed with Solaris by default..
However you may use your own Postgres packages or binaries in different location and not enable Postgres by default. (PostgreSQL is an integral part of Solaris 10 )

Don't forget some of Solaris's own tools like SunMC now uses the bundled postgres in the operating system and hence depends on its existence and tested against it.

http://www.sun.com/bigadmin/sundocs/...s/sunmcnew.jsp


Removing PostgreSQL packages installed by default is not supported since upgrades to the Operating system will depend on those file installations to exist out in the preset locations. However that does not mean you cannot have your own binaries and use them at the default port. The default database is not enabled by default which means there is no collision of port numbersunless you want both database clusters to be enabled. If thats the case than changing Port numbers in either your database cluster or the default db instance (if init'ed by using svcadm start postgres_82:default for the first time) in /var/postgres/8.2/data/postgresql.conf should be fairly easy.


Other option is to use "OpenSolaris" CD images which does not have PostgreSQL installed by default as part of the "CD image" install as of now.

http://opensolaris.org/os/project/in...sources/getit/

-Jignesh


Thomas Bräutigam wrote:
> Hi Joshua,
>
> I think I have to explain it a little more detailed
>
> - my product uses a postgres database with the standart config (ports
> etc.)
> - with Solaris 10 postgres is already installed as standart
> - I need to replace this Solaris 10 postgres installation with my
> standart postgres database of my product
>
> That is the reason I need to remove the standart postgres installation from Solaris 10 that I can use my own postgres database.
>
> My concern is how I can remove this standart Solaris 10 postgres databaseas quick and efficient as possible that I can put in my postgres database?
>
> Cheers Thomas
>
>
>
> -----Original Message-----
> From: Joshua D. Drake [mailto:jd@commandprompt.com]
> Sent: Mittwoch, 30. April 2008 02:33
> To: Thomas Bräutigam
> Cc: J.K.Shah@Sun.COM; Robert.Lor@Sun.COM; pgsql-admin@postgresql.org
> Subject: Re: [ADMIN] Remove Postgres from Solaris 10
>
> On Wed, 30 Apr 2008 01:59:08 +0200
> Thomas Bräutigam <thomas.braeutigam@nexustelecom.com> wrote:
>
>
>> Hi Joshua
>>
>> The problem is this that I need this ports for my default postgres
>> database.
>>
>> Is it than possible to have 2 default postgres databases in parallel?
>> Same ports etc.....?
>>

>
> I am afraid I don't understand what you are asking. You can't have two postgresql installations bound to the same port. You can have two postgresql installations pointing to different ports on the same machine.
>
> Joshua D. Drake
>
>
> --
> The PostgreSQL Company since 1997: http://www.commandprompt.com/
> PostgreSQL Community Conference: http://www.postgresqlconference.org/
> United States PostgreSQL Association: http://www.postgresql.us/ Donate
> to the PostgreSQL Project: http://www.postgresql.org/about/donate
>
>
>
>
>




--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 05-02-2008, 06:06 AM
=?iso-8859-1?Q?Thomas_Br=E4utigam?=
 
Posts: n/a
Default Re: Remove Postgres from Solaris 10

Is this than everyhting I need to take care when I run this both standard databases or do I need to configure or change something else?

unix_socket_directory = 'data directory for a particular DB here'
listen_addresses = 'VIP here'
port = 5432

Cheers Thomas


-----Original Message-----
From: Igor Polishchuk [mailto:ipolishchuk@hi5.com]
Sent: Mittwoch, 30. April 2008 03:57
To: Joshua D. Drake; Thomas Bräutigam
Cc: J.K.Shah@Sun.COM; Robert.Lor@Sun.COM; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Remove Postgres from Solaris 10

In our organization, we are running multiple databases on the same box on the default port. However, they all have their own data directories and theylisten on different VIP's. Here are the parameters in postrgresql.conf to make it work:

unix_socket_directory = 'data directory for a particular DB here'
listen_addresses = 'VIP here'
port = 5432


On 4/29/08 5:33 PM, "Joshua D. Drake" <jd@commandprompt.com> wrote:

> On Wed, 30 Apr 2008 01:59:08 +0200
> Thomas Bräutigam <thomas.braeutigam@nexustelecom.com> wrote:
>
>> Hi Joshua
>>
>> The problem is this that I need this ports for my default postgres
>> database.
>>
>> Is it than possible to have 2 default postgres databases in parallel?
>> Same ports etc.....?

>
> I am afraid I don't understand what you are asking. You can't have two
> postgresql installations bound to the same port. You can have two
> postgresql installations pointing to different ports on the same
> machine.
>
> Joshua D. Drake
>


--





--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 05-02-2008, 06:06 AM
Robert Lor
 
Posts: n/a
Default Re: Remove Postgres from Solaris 10

Thomas Bräutigam wrote:
> Hi Jignesh
>
> What things do I all need to take care when I want to run both postgres databases on the same box. Like the Solaris 10 postgres db and my postgres db.
>

By default the Postgres versions that are shipped with Solaris are
disabled (run "svcs postgresql" to verify). So if you just want to use
your own Postgres binary, you don't have to worry about changing the
port as long as you don't enable the versions that come with Solaris.
You are making conflicting statement about running both databases in
parallel but at the same time want to replace your version with the
binary that comes with Solaris. Perhaps you're thinking that the
Postgres that comes with Solaris is always running by default which is
not the case!

-Robert


--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 05-02-2008, 06:06 AM
=?iso-8859-1?Q?Thomas_Br=E4utigam?=
 
Posts: n/a
Default Re: Remove Postgres from Solaris 10

Hi Robert,

That's the issue, the database is not running which gets delivered with Solaris 10 but I am not sure if the my customer accidently activates it or not, so I want to be on the safe side of live, that I minimize this risk.

Cheers Thomas


-----Original Message-----
From: Robert.Lor@Sun.COM [mailto:Robert.Lor@Sun.COM]
Sent: Mittwoch, 30. April 2008 20:25
To: Thomas Bräutigam
Cc: J.K.Shah@Sun.COM; Joshua D. Drake; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Remove Postgres from Solaris 10

Thomas Bräutigam wrote:
> Hi Jignesh
>
> What things do I all need to take care when I want to run both postgres databases on the same box. Like the Solaris 10 postgres db and my postgres db.
>

By default the Postgres versions that are shipped with Solaris are disabled(run "svcs postgresql" to verify). So if you just want to use your own Postgres binary, you don't have to worry about changing the port as long as you don't enable the versions that come with Solaris.
You are making conflicting statement about running both databases in parallel but at the same time want to replace your version with the binary that comes with Solaris. Perhaps you're thinking that the Postgres that comes with Solaris is always running by default which is not the case!

-Robert




--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 05-02-2008, 06:06 AM
Robert Lor
 
Posts: n/a
Default Re: Remove Postgres from Solaris 10

Thomas Bräutigam wrote:
> That's the issue, the database is not running which gets delivered with Solaris 10 but I am not sure if the my customer accidently activates it or not, so I want to be on the safe side of live, that I minimize this risk.
>

In that case, just pick a non default port for your Postgres server process.

-Robert

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 05-02-2008, 06:06 AM
Igniris Valdivia Baez
 
Posts: n/a
Default Re: Remove Postgres from Solaris 10

Hola
Soy estudiante de Ingeniería Informática. Le escribo porque consulté una publicación suya en la web sobre POSTGRESQL y más específicamentemi duda es sobre replica, tenemos un escenario de la siguiente manera, queremos montar una aplicación para el país completo, que es necesario quetodos puedan consultar y modificar sobre los mismos datos y tenemos la duda si usar PgCluster nos seria factible? y si es así si seria síncrono o asíncrono. Otra cosa, que seria el replicador(hardware o software) y elbalanceador de carga.
Gracias de antemano
Saludos Igniris

-----Mensaje original-----
De: pgsql-admin-owner@postgresql.org [mailtogsql-admin-owner@postgresql.org] En nombre de Thomas Bräutigam
Enviado el: martes, 29 de abril de 2008 23:10
Para: Joshua D. Drake
CC: J.K.Shah@Sun.COM; Robert.Lor@Sun.COM; pgsql-admin@postgresql.org
Asunto: Re: [ADMIN] Remove Postgres from Solaris 10

Hi Joshua,

I think I have to explain it a little more detailed

- my product uses a postgres database with the standart config (ports etc.)
- with Solaris 10 postgres is already installed as standart
- I need to replace this Solaris 10 postgres installation with my standart postgres database of my product

That is the reason I need to remove the standart postgres installation fromSolaris 10 that I can use my own postgres database.

My concern is how I can remove this standart Solaris 10 postgres database as quick and efficient as possible that I can put in my postgres database?

Cheers Thomas



-----Original Message-----
From: Joshua D. Drake [mailto:jd@commandprompt.com]
Sent: Mittwoch, 30. April 2008 02:33
To: Thomas Bräutigam
Cc: J.K.Shah@Sun.COM; Robert.Lor@Sun.COM; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Remove Postgres from Solaris 10

On Wed, 30 Apr 2008 01:59:08 +0200
Thomas Bräutigam <thomas.braeutigam@nexustelecom.com> wrote:

> Hi Joshua
>
> The problem is this that I need this ports for my default postgres
> database.
>
> Is it than possible to have 2 default postgres databases in parallel?
> Same ports etc.....?


I am afraid I don't understand what you are asking. You can't have two postgresql installations bound to the same port. You can have two postgresql installations pointing to different ports on the same machine.

Joshua D. Drake


--
The PostgreSQL Company since 1997: http://www.commandprompt.com/ PostgreSQLCommunity Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/ Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate





--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 05-02-2008, 06:06 AM
Jignesh K. Shah
 
Posts: n/a
Default Re: help about replication




Igniris Valdivia Baez wrote:
> Hola
> Soy estudiante de Ingeniería Informática. Le escribo porque consulté una publicación suya en la web sobre POSTGRESQL y más específicamente mi duda es sobre replica, tenemos un escenario de la siguiente manera, queremos montar una aplicación para el país completo, que es necesario que todos puedan consultar y modificar sobre los mismos datos y tenemos la duda si usar PgCluster nos seria factible? y si es así si seria síncrono o asíncrono. Otra cosa, que seria el replicador(hardware o software) y el balanceador de carga.
> Gracias de antemano
> Saludos Igniris
>
>


Allright

I used google translate to understand the email

"
Hello
I am a student of computer engineering. I am writing you because I
consulted a publication on the web and more specifically on POSTGRESQL
is definitely on my replica, we have a scenario as follows, we want to
mount an application for the whole country, it is necessary that
everyone can see and change on them data and we doubt if we use
PgCluster feasible? and if so whether serious synchronous or
asynchronous. Another thing that would be the replicator (hardware or
software) and the load balancer.
Thanks in advance
Greetings Igniris
"



Anyway I dont think I have any answers to this.

-Jignesh


--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:36 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com