Unix Technical Forum

SEO

vBulletin Search Engine Optimization


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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-29-2008, 08:29 PM
=?iso-8859-1?Q?Thomas_Br=E4utigam?=
 
Posts: n/a
Default Remove Postgres from Solaris 10

Hello all,

I have a software solution with a postgres database. The user postgres is abolutly needed for my software.

With Solaris 10, Postgres is automatically installed and uses the user postgres. How can I easily remove the current postgres install from this Solaris 10? Is there a process which is provided from Solaris to remove it? Whats the best way to do it?

Thank you for your help.

Cheers Thomas


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-29-2008, 08:29 PM
Jignesh K. Shah
 
Posts: n/a
Default Re: Remove Postgres from Solaris 10

I guess what you mean is to remove the "role" postgres so that you can
redefine it as a normal user and not remove the binaries that are
installed with Postgres as they can be overridden by having right PATH
variables

Its easy... Modify /etc/user_attr and remove type=role from the postgres
line and modify /etc/passwd to set a home path and change default shell
to /bin/sh or /bin/bash and set password for it.. and now you have a
normal user..
Is this what you are trying to do?

-Jignesh


Thomas Bräutigam wrote:
> Hello all,
>
> I have a software solution with a postgres database. The user postgres
> is abolutly needed for my software.
>
> With Solaris 10, Postgres is automatically installed and uses the user
> postgres. How can I easily remove the current postgres install from
> this Solaris 10? Is there a process which is provided from Solaris to
> remove it? Whats the best way to do it?
>
> Thank you for your help.
>
> Cheers Thomas
> **


--
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
  #3 (permalink)  
Old 05-02-2008, 05:05 AM
Robert Lor
 
Posts: n/a
Default Re: Remove Postgres from Solaris 10

There are a couple of options you can take to accomplish this.

1) Remove the role by running ¨roledel postgres¨ . This will remove
postgres from /etc/passwd and /etc/user_attr, and you can use useradd to
add postgres as a user.

2) Modify ¨postgres¨ from being a role to user. Below are the steps I use:

a) run ¨passwd -d postgres¨
b) edit /etc/user_attr and change type for ¨postgres¨ from ¨role¨
to ¨user¨
c) create a home dir for postgres if needed
d) use the usermod command to change the home dir and shell


-Robert


Jignesh K. Shah wrote:
> I guess what you mean is to remove the "role" postgres so that you can
> redefine it as a normal user and not remove the binaries that are
> installed with Postgres as they can be overridden by having right PATH
> variables
>
> Its easy... Modify /etc/user_attr and remove type=role from the
> postgres line and modify /etc/passwd to set a home path and change
> default shell to /bin/sh or /bin/bash and set password for it.. and
> now you have a normal user..
> Is this what you are trying to do?
>
> -Jignesh
>
>
> Thomas Bräutigam wrote:
>> Hello all,
>>
>> I have a software solution with a postgres database. The user
>> postgres is abolutly needed for my software.
>>
>> With Solaris 10, Postgres is automatically installed and uses the
>> user postgres. How can I easily remove the current postgres install
>> from this Solaris 10? Is there a process which is provided from
>> Solaris to remove it? Whats the best way to do it?
>>
>> Thank you for your help.
>>
>> Cheers Thomas
>> **



--
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
  #4 (permalink)  
Old 05-02-2008, 05:05 AM
=?iso-8859-1?Q?Thomas_Br=E4utigam?=
 
Posts: n/a
Default Re: Remove Postgres from Solaris 10

Hi Jignesh,

But than I have the problem that I have 2 installations of postgres with default settings on one machine. Is it possible to have two installations with default settings on one machine?

Do they not interrupt each other with ports or something else....?

Cheers Thomas



-----Original Message-----
From: J.K.Shah@Sun.COM [mailto:J.K.Shah@Sun.COM]
Sent: Dienstag, 29. April 2008 04:45
To: Thomas Bräutigam
Cc: Robert.Lor@Sun.COM; pgsql-admin@postgresql.org
Subject: Re: Remove Postgres from Solaris 10

I guess what you mean is to remove the "role" postgres so that you can redefine it as a normal user and not remove the binaries that are installed with Postgres as they can be overridden by having right PATH variables

Its easy... Modify /etc/user_attr and remove type=role from the postgres line and modify /etc/passwd to set a home path and change default shell to /bin/sh or /bin/bash and set password for it.. and now you have a normal user..
Is this what you are trying to do?

-Jignesh


Thomas Bräutigam wrote:
> Hello all,
>
> I have a software solution with a postgres database. The user postgres
> is abolutly needed for my software.
>
> With Solaris 10, Postgres is automatically installed and uses the user
> postgres. How can I easily remove the current postgres install from
> this Solaris 10? Is there a process which is provided from Solaris to
> remove it? Whats the best way to do it?
>
> Thank you for your help.
>
> Cheers Thomas
> **




--
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
  #5 (permalink)  
Old 05-02-2008, 05:05 AM
Joshua D. Drake
 
Posts: n/a
Default Re: Remove Postgres from Solaris 10

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

> Hi Jignesh,
>
> But than I have the problem that I have 2 installations of postgres
> with default settings on one machine. Is it possible to have two
> installations with default settings on one machine?
>
> Do they not interrupt each other with ports or something else....?


You will want to change the ports they run on. It may also affect your
kernel settings such as shmmax.

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)

iD8DBQFIF7S6ATb/zqfZUUQRAriPAJ95tGjJKn8LEpRoHsrmYDFO8NuA0ACZAWea
V+DDOotJ4hd2mhlUZ/Ua4LU=
=1gL2
-----END PGP SIGNATURE-----

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

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.....?

Right now I just used the hammer method and removed the packages from the Solaris 10 version, but this seem to be not the elegant version of doin it.

Cheers Thomas

-----Original Message-----
From: Joshua D. Drake [mailto:jd@commandprompt.com]
Sent: Mittwoch, 30. April 2008 01:52
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:47:02 +0200
Thomas Bräutigam <thomas.braeutigam@nexustelecom.com> wrote:

> Hi Jignesh,
>
> But than I have the problem that I have 2 installations of postgres
> with default settings on one machine. Is it possible to have two
> installations with default settings on one machine?
>
> Do they not interrupt each other with ports or something else....?


You will want to change the ports they run on. It may also affect your kernel settings such as shmmax.

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
  #7 (permalink)  
Old 05-02-2008, 05:05 AM
=?iso-8859-1?Q?Thomas_Br=E4utigam?=
 
Posts: n/a
Default Re: Remove Postgres from Solaris 10

Hi Joshua,

Why does it affect shmmax?

Cheers Thomas


-----Original Message-----
From: Joshua D. Drake [mailto:jd@commandprompt.com]
Sent: Mittwoch, 30. April 2008 01:52
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:47:02 +0200
Thomas Bräutigam <thomas.braeutigam@nexustelecom.com> wrote:

> Hi Jignesh,
>
> But than I have the problem that I have 2 installations of postgres
> with default settings on one machine. Is it possible to have two
> installations with default settings on one machine?
>
> Do they not interrupt each other with ports or something else....?


You will want to change the ports they run on. It may also affect your kernel settings such as shmmax.

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
  #8 (permalink)  
Old 05-02-2008, 05:05 AM
Joshua D. Drake
 
Posts: n/a
Default Re: Remove Postgres from Solaris 10

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

> Hi Joshua,
>
> Why does it affect shmmax?


Because you would have two clusters access shared memory.

http://www.postgresql.org/docs/curre...resources.html

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)

iD8DBQFIF7h/ATb/zqfZUUQRAp/1AJ9JIR3P1/qYqZyIQlVj9ThONX6uowCgj599
i56tPuwHndxvZ8H8aoJbs2k=
=ehQ3
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-02-2008, 05:05 AM
Joshua D. Drake
 
Posts: n/a
Default Re: 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



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

iD8DBQFIF75CATb/zqfZUUQRAufwAJ0Rtq9I3l4PIUijA7ZeBeXFY2EkEwCgpOcC
BgZ6owMspUb2qOmZVkrLyds=
=FtNa
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-02-2008, 05:05 AM
Igor Polishchuk
 
Posts: n/a
Default Re: 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 they
listen 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
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



All times are GMT. The time now is 06:46 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145