pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
two versions on same linux
6+ messages / 4 participants
[nested] [flat]

* two versions on same linux
@ 2004-05-21 07:14  Paul Gimpelj <pgimpelj@sympatico.ca>
  0 siblings, 2 replies; 6+ messages in thread

From: Paul Gimpelj @ 2004-05-21 07:14 UTC (permalink / raw)
  To: pgsql-admin

Hi,

I have redhat 7.3 and postgres 7.2

Is there a way to have 7.4 installed together with postgres 7.2 ? and both running at the same time,
with of course different data directories.

should i use the generic postgres or the rpm'd.

The existing redhat has no passwords for postgres, and even if if assign one to user postgres,
postgres ignores it.

thanks
paul

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: two versions on same linux
@ 2004-05-21 12:19  Christopher Browne <cbbrowne@acm.org>
  parent: Paul Gimpelj <pgimpelj@sympatico.ca>
  1 sibling, 1 reply; 6+ messages in thread

From: Christopher Browne @ 2004-05-21 12:19 UTC (permalink / raw)
  To: pgsql-admin

A long time ago, in a galaxy far, far away, pgimpelj@sympatico.ca ("Paul Gimpelj") wrote:
> I have redhat 7.3 and postgres 7.2
>
> Is there a way to have 7.4 installed together with postgres 7.2 ? and both running at the same time,
>
> with of course different data directories.
>
> should i use the generic postgres or the rpm'd.

Presumably the respective RPMs will conflict between the different
versions, which is a bit of a problem.

You could of course install one or the other or even both from source,
as long as you choose a specific place to stick them.

Under the circumstances, I'd be inclined to do this:

 - Install the PG 7.4 RPMs, in order to have things like Perl support
   managed by the package management system.  

   Personally, I'd rather stick hot needles in my eyes (add further
   gruesome details as needed ;-)) than manage Perl stuff by hand.

 - Install PG 7.2 AND 7.4 in source code form in some place that YOU
   manage, and run the database clusters out of that.

   A naming convention could be to stick them in /opt; you'd configure
   the source builds something like:

   %postgresql-7.2.5> ./configure --prefix=/opt/postgres/7.2.5
    [then build and install 7.2.5]

   %postgresql-7.4.2> ./configure --prefix=/opt/postgres/7.4.2
    [then build and install 7.4.2]
   
You'd need to customize both "init" scripts in /etc/rc.d, perhaps
basing them on the ones provided by the RPM file.   

> The existing redhat has no passwords for postgres, and even if if
> assign one to user postgres,
>
> postgres ignores it.

That's probably based on the ACLs configured in the pg_hba.conf file;
if there are "trust" entries there, passwords can get ignored...
-- 
(reverse (concatenate 'string "gro.mca" "@" "enworbbc"))
http://www.ntlug.org/~cbbrowne/emacs.html
"We  live  in  a  Newtonian  world of  Einsteinian  physics  ruled  by
Frankenstein logic."  -- David Russell



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: two versions on same linux
@ 2004-05-21 12:23  Muhammad Imran <imran@sdpi.org>
  parent: Paul Gimpelj <pgimpelj@sympatico.ca>
  1 sibling, 1 reply; 6+ messages in thread

From: Muhammad Imran @ 2004-05-21 12:23 UTC (permalink / raw)
  To: pgsql-admin

yup, just configure both on differnt ports
  ----- Original Message ----- 
  From: Paul Gimpelj 
  To: pgsql-admin@postgresql.org 
  Sent: Friday, May 21, 2004 12:14 PM
  Subject: [ADMIN] two versions on same linux


  Hi,

  I have redhat 7.3 and postgres 7.2

  Is there a way to have 7.4 installed together with postgres 7.2 ? and both running at the same time,
  with of course different data directories.

  should i use the generic postgres or the rpm'd.

  The existing redhat has no passwords for postgres, and even if if assign one to user postgres,
  postgres ignores it.

  thanks
  paul

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: two versions on same linux
@ 2004-05-23 22:25  Paul Gimpelj <pgimpelj@sympatico.ca>
  parent: Christopher Browne <cbbrowne@acm.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Paul Gimpelj @ 2004-05-23 22:25 UTC (permalink / raw)
  To: pgsql-admin

thanks,
I used tar.gz version,
now trying to get regression working.

I want two simo servers.
Any suggestions on port numbers?


----- Original Message -----
From: "Christopher Browne" <cbbrowne@acm.org>
To: <pgsql-admin@postgresql.org>
Sent: Friday, May 21, 2004 8:19 AM
Subject: Re: [ADMIN] two versions on same linux


> A long time ago, in a galaxy far, far away, pgimpelj@sympatico.ca ("Paul
Gimpelj") wrote:
> > I have redhat 7.3 and postgres 7.2
> >
> > Is there a way to have 7.4 installed together with postgres 7.2 ? and
both running at the same time,
> >
> > with of course different data directories.
> >
> > should i use the generic postgres or the rpm'd.
>
> Presumably the respective RPMs will conflict between the different
> versions, which is a bit of a problem.
>
> You could of course install one or the other or even both from source,
> as long as you choose a specific place to stick them.
>
> Under the circumstances, I'd be inclined to do this:
>
>  - Install the PG 7.4 RPMs, in order to have things like Perl support
>    managed by the package management system.
>
>    Personally, I'd rather stick hot needles in my eyes (add further
>    gruesome details as needed ;-)) than manage Perl stuff by hand.
>
>  - Install PG 7.2 AND 7.4 in source code form in some place that YOU
>    manage, and run the database clusters out of that.
>
>    A naming convention could be to stick them in /opt; you'd configure
>    the source builds something like:
>
>    %postgresql-7.2.5> ./configure --prefix=/opt/postgres/7.2.5
>     [then build and install 7.2.5]
>
>    %postgresql-7.4.2> ./configure --prefix=/opt/postgres/7.4.2
>     [then build and install 7.4.2]
>
> You'd need to customize both "init" scripts in /etc/rc.d, perhaps
> basing them on the ones provided by the RPM file.
>
> > The existing redhat has no passwords for postgres, and even if if
> > assign one to user postgres,
> >
> > postgres ignores it.
>
> That's probably based on the ACLs configured in the pg_hba.conf file;
> if there are "trust" entries there, passwords can get ignored...
> --
> (reverse (concatenate 'string "gro.mca" "@" "enworbbc"))
> http://www.ntlug.org/~cbbrowne/emacs.html
> "We  live  in  a  Newtonian  world of  Einsteinian  physics  ruled  by
> Frankenstein logic."  -- David Russell
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly
>




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: two versions on same linux
@ 2004-05-23 22:27  Paul Gimpelj <pgimpelj@sympatico.ca>
  parent: Muhammad Imran <imran@sdpi.org>
  0 siblings, 1 reply; 6+ messages in thread

From: Paul Gimpelj @ 2004-05-23 22:27 UTC (permalink / raw)
  To: pgsql-admin

thanks
have running simo,
Have you any suggestions on port numbers?

  ----- Original Message ----- 
  From: Muhammad Imran 
  To: pgsql-admin@postgresql.org 
  Sent: Friday, May 21, 2004 8:23 AM
  Subject: Re: [ADMIN] two versions on same linux


  yup, just configure both on differnt ports
    ----- Original Message ----- 
    From: Paul Gimpelj 
    To: pgsql-admin@postgresql.org 
    Sent: Friday, May 21, 2004 12:14 PM
    Subject: [ADMIN] two versions on same linux


    Hi,

    I have redhat 7.3 and postgres 7.2

    Is there a way to have 7.4 installed together with postgres 7.2 ? and both running at the same time,
    with of course different data directories.

    should i use the generic postgres or the rpm'd.

    The existing redhat has no passwords for postgres, and even if if assign one to user postgres,
    postgres ignores it.

    thanks
    paul

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: two versions on same linux
@ 2004-05-24 03:15  Andrew Biagioni <andrew.biagioni@e-greek.net>
  parent: Paul Gimpelj <pgimpelj@sympatico.ca>
  0 siblings, 0 replies; 6+ messages in thread

From: Andrew Biagioni @ 2004-05-24 03:15 UTC (permalink / raw)
  To: Paul Gimpelj <pgimpelj@sympatico.ca>; +Cc: pgsql-admin

I would recommend one on the default port (5432).  I have also used, 
without problems (on RedHat 7.3) ports 5434, 5435, 5436, 5437, 15437.

What I would do (more experienced people, pls. correct me) is to check 
your /etc/services file to see what ports are used for what (e.g.:
    ...
    cfengine        5308/tcp                        # CFengine
    cfengine        5308/udp                        # CFengine
    ...
Means:  if you use Cold Fusion (cf) don't use port 5308.

If you use outside packages that use a port but are not standard (sorry, 
no good examples), avoid their port(s).

It used to be that any port over 10,000 was "open".  I suspect it's not 
really true anymore, but usually safe.

You can also change your port at any time by changing (or adding) the 
value in postgresql.conf:
    port = 5432
can become:
    port = 15432
or
    port = 5434
etc.

             Andrew


Paul Gimpelj wrote:

> thanks
> have running simo,
> Have you any suggestions on port numbers?
>  
>
>     ----- Original Message -----
>     *From:* Muhammad Imran <mailto:imran@sdpi.org>
>     *To:* pgsql-admin@postgresql.org <mailto:pgsql-admin@postgresql.org>
>     *Sent:* Friday, May 21, 2004 8:23 AM
>     *Subject:* Re: [ADMIN] two versions on same linux
>
>     yup, just configure both on differnt ports
>
>         ----- Original Message -----
>         *From:* Paul Gimpelj <mailto:pgimpelj@sympatico.ca>
>         *To:* pgsql-admin@postgresql.org
>         <mailto:pgsql-admin@postgresql.org>
>         *Sent:* Friday, May 21, 2004 12:14 PM
>         *Subject:* [ADMIN] two versions on same linux
>
>         Hi,
>          
>         I have redhat 7.3 and postgres 7.2
>          
>         Is there a way to have 7.4 installed together with postgres
>         7.2 ? and both running at the same time,
>         with of course different data directories.
>          
>         should i use the generic postgres or the rpm'd.
>          
>         The existing redhat has no passwords for postgres, and even if
>         if assign one to user postgres,
>         postgres ignores it.
>          
>         thanks
>         paul
>          
>

^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2004-05-24 03:15 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-05-21 07:14 two versions on same linux Paul Gimpelj <pgimpelj@sympatico.ca>
2004-05-21 12:19 ` Christopher Browne <cbbrowne@acm.org>
2004-05-23 22:25   ` Paul Gimpelj <pgimpelj@sympatico.ca>
2004-05-21 12:23 ` Muhammad Imran <imran@sdpi.org>
2004-05-23 22:27   ` Paul Gimpelj <pgimpelj@sympatico.ca>
2004-05-24 03:15     ` Andrew Biagioni <andrew.biagioni@e-greek.net>

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