pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedIn or Exists?
17+ messages / 7 participants
[nested] [flat]
* In or Exists?
@ 2006-02-15 14:36 Fabrice.Sznajderman@devoteam.com
0 siblings, 2 replies; 17+ messages in thread
From: Fabrice.Sznajderman@devoteam.com @ 2006-02-15 14:36 UTC (permalink / raw)
To: pgsql-jdbc; pgsql-jdbc-owner@postgresql.org
Hello,
According to you, What it better to use, the IN or EXISTS predicat?
I saw on internet it's better to use EXITS . but I would like to have
another point of view..
Thanks in advance
Fabrice
+---------------------------------------------------------------------+
About Devoteam:
Devoteam is an IT consulting group.
Combining consulting and technology solutions offers enables
Devoteam to provide its customers with independent advice and
effective solutions to align their information system's technical
infrastructure with their operational objectives.
The group achieved a turnover of 199 million euros in 2005
an operating margin of 7% and counts 2,100 employees through
12 European countries and the Middle East.
Listed on the Euronext Paris Nouveau Marche and part of the Nexteconomy,
IT CAC, IT CAC 50, SBF 250 index of Euronext Paris.
www.devoteam.com
+---------------------------------------------------------------------+
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: In or Exists?
@ 2006-02-15 15:11 Fabrice.Sznajderman@devoteam.com
parent: Achilleus Mantzios <achill@matrix.gatewaynet.com>
0 siblings, 1 reply; 17+ messages in thread
From: Fabrice.Sznajderman@devoteam.com @ 2006-02-15 15:11 UTC (permalink / raw)
To: pgsql-jdbc; pgsql-jdbc-owner@postgresql.org
Thank for your answer!
I use 7.3. I think it the same between 7.4 and 7.3?
Fabrice
Achilleus Mantzios <achill@matrix.gatewaynet.com>
Envoyé par : pgsql-jdbc-owner@postgresql.org
15/02/2006 16:57
A
Fabrice.Sznajderman@devoteam.com
cc
pgsql-jdbc@postgresql.org, <pgsql-jdbc-owner@postgresql.org>
Objet
Re: [JDBC] In or Exists?
O Fabrice.Sznajderman@devoteam.com έγραψε στις Feb 15, 2006 :
> Hello,
>
> According to you, What it better to use, the IN or EXISTS predicat?
>
> I saw on internet it's better to use EXITS . but I would like to have
> another point of view..
>
> Thanks in advance
Prior to 7.4 IN was a looser,
in 7.4 IN sometimes is by far a clear winner,
i dunno in 8.*
>
>
> Fabrice
>
> +---------------------------------------------------------------------+
> About Devoteam:
>
> Devoteam is an IT consulting group.
> Combining consulting and technology solutions offers enables
> Devoteam to provide its customers with independent advice and
> effective solutions to align their information system's technical
> infrastructure with their operational objectives.
> The group achieved a turnover of 199 million euros in 2005
> an operating margin of 7% and counts 2,100 employees through
> 12 European countries and the Middle East.
> Listed on the Euronext Paris Nouveau Marche and part of the Nexteconomy,
> IT CAC, IT CAC 50, SBF 250 index of Euronext Paris.
> www.devoteam.com
> +---------------------------------------------------------------------+
>
--
-Achilleus
---------------------------(end of broadcast)---------------------------
TIP 1: 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] 17+ messages in thread
* Re: In or Exists?
@ 2006-02-15 15:36 Fabrice.Sznajderman@devoteam.com
parent: Achilleus Mantzios <achill@matrix.gatewaynet.com>
0 siblings, 1 reply; 17+ messages in thread
From: Fabrice.Sznajderman@devoteam.com @ 2006-02-15 15:36 UTC (permalink / raw)
To: pgsql-jdbc; pgsql-jdbc-owner@postgresql.org
I know I know I too behind!
But for this moment my project manager wants to stay with this version...
There is lot specific developpement around this version ... it not easy to
change the version...
I asked to my project manager : we must upgrade !! he answser me.. not for
this moment!
so!!.... :-(
thank a lot for your answer!
Fabrice
Achilleus Mantzios <achill@matrix.gatewaynet.com>
Envoyé par : pgsql-jdbc-owner@postgresql.org
15/02/2006 17:19
A
Fabrice.Sznajderman@devoteam.com
cc
Objet
Re: [JDBC] In or Exists?
O Fabrice.Sznajderman@devoteam.com έγραψε στις Feb 15, 2006 :
> Thank for your answer!
>
> I use 7.3. I think it the same between 7.4 and 7.3?
No in 7.3 exists wins.
Why are you so behind?
>
>
>
>
> Fabrice
>
>
>
>
>
> Achilleus Mantzios <achill@matrix.gatewaynet.com>
> EnvoyΓ© par : pgsql-jdbc-owner@postgresql.org
> 15/02/2006 16:57
>
> A
> Fabrice.Sznajderman@devoteam.com
> cc
> pgsql-jdbc@postgresql.org, <pgsql-jdbc-owner@postgresql.org>
> Objet
> Re: [JDBC] In or Exists?
>
>
>
>
>
>
> O Fabrice.Sznajderman@devoteam.com ΞΞ³ΟΞ±ΟΞ΅ ΟΟΞΉΟ Feb 15, 2006 :
>
> > Hello,
> >
> > According to you, What it better to use, the IN or EXISTS predicat?
> >
> > I saw on internet it's better to use EXITS . but I would like to have
> > another point of view..
> >
> > Thanks in advance
>
> Prior to 7.4 IN was a looser,
> in 7.4 IN sometimes is by far a clear winner,
> i dunno in 8.*
>
> >
> >
> > Fabrice
> >
> >
+---------------------------------------------------------------------+
> > About Devoteam:
> >
> > Devoteam is an IT consulting group.
> > Combining consulting and technology solutions offers enables
> > Devoteam to provide its customers with independent advice and
> > effective solutions to align their information system's technical
> > infrastructure with their operational objectives.
> > The group achieved a turnover of 199 million euros in 2005
> > an operating margin of 7% and counts 2,100 employees through
> > 12 European countries and the Middle East.
> > Listed on the Euronext Paris Nouveau Marche and part of the
Nexteconomy,
> > IT CAC, IT CAC 50, SBF 250 index of Euronext Paris.
> > www.devoteam.com
> >
+---------------------------------------------------------------------+
> >
>
>
--
-Achilleus
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: In or Exists?
@ 2006-02-15 15:48 Scott Marlowe <smarlowe@g2switchworks.com>
parent: Fabrice.Sznajderman@devoteam.com
0 siblings, 1 reply; 17+ messages in thread
From: Scott Marlowe @ 2006-02-15 15:48 UTC (permalink / raw)
To: Fabrice.Sznajderman@devoteam.com; +Cc: pgsql-jdbc; pgsql-jdbc-owner@postgresql.org
On Wed, 2006-02-15 at 09:36, Fabrice.Sznajderman@devoteam.com wrote:
> I know I know I too behind!
> But for this moment my project manager wants to stay with this
> version...
>
> There is lot specific developpement around this version ... it not
> easy to change the version...
>
> I asked to my project manager : we must upgrade !! he answser me.. not
> for this moment!
>
> so!!.... :-(
>
> thank a lot for your answer!
Just make sure you're running the latest version of 7.3.x. Earlier
versions of 7.3 had some data loss issues if I remember correctly. It's
always a good practice to be running the latest patch level of your
version of PostgreSQL.
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: In or Exists?
@ 2006-02-15 15:57 Achilleus Mantzios <achill@matrix.gatewaynet.com>
parent: Fabrice.Sznajderman@devoteam.com
1 sibling, 1 reply; 17+ messages in thread
From: Achilleus Mantzios @ 2006-02-15 15:57 UTC (permalink / raw)
To: Fabrice.Sznajderman@devoteam.com; +Cc: pgsql-jdbc; pgsql-jdbc-owner@postgresql.org
O Fabrice.Sznajderman@devoteam.com Ýãñáøå óôéò Feb 15, 2006 :
> Hello,
>
> According to you, What it better to use, the IN or EXISTS predicat?
>
> I saw on internet it's better to use EXITS . but I would like to have
> another point of view..
>
> Thanks in advance
Prior to 7.4 IN was a looser,
in 7.4 IN sometimes is by far a clear winner,
i dunno in 8.*
>
>
> Fabrice
>
> +---------------------------------------------------------------------+
> About Devoteam:
>
> Devoteam is an IT consulting group.
> Combining consulting and technology solutions offers enables
> Devoteam to provide its customers with independent advice and
> effective solutions to align their information system's technical
> infrastructure with their operational objectives.
> The group achieved a turnover of 199 million euros in 2005
> an operating margin of 7% and counts 2,100 employees through
> 12 European countries and the Middle East.
> Listed on the Euronext Paris Nouveau Marche and part of the Nexteconomy,
> IT CAC, IT CAC 50, SBF 250 index of Euronext Paris.
> www.devoteam.com
> +---------------------------------------------------------------------+
>
--
-Achilleus
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: In or Exists?
@ 2006-02-15 15:59 Fabrice.Sznajderman@devoteam.com
parent: Scott Marlowe <smarlowe@g2switchworks.com>
0 siblings, 3 replies; 17+ messages in thread
From: Fabrice.Sznajderman@devoteam.com @ 2006-02-15 15:59 UTC (permalink / raw)
To: pgsql-jdbc; pgsql-jdbc-owner@postgresql.org
thank you for your answer!
how I can know the version of my postgres DataBase ?
I know is 7.3.x but I don't know for the 'x' number ..
Thanks a lot in advance!
Scott Marlowe <smarlowe@g2switchworks.com>
Envoyé par : pgsql-jdbc-owner@postgresql.org
15/02/2006 16:48
A
Fabrice.Sznajderman@devoteam.com
cc
Objet
Re: [JDBC] In or Exists?
On Wed, 2006-02-15 at 09:36, Fabrice.Sznajderman@devoteam.com wrote:
> I know I know I too behind!
> But for this moment my project manager wants to stay with this
> version...
>
> There is lot specific developpement around this version ... it not
> easy to change the version...
>
> I asked to my project manager : we must upgrade !! he answser me.. not
> for this moment!
>
> so!!.... :-(
>
> thank a lot for your answer!
Just make sure you're running the latest version of 7.3.x. Earlier
versions of 7.3 had some data loss issues if I remember correctly. It's
always a good practice to be running the latest patch level of your
version of PostgreSQL.
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
+---------------------------------------------------------------------+
About Devoteam:
Devoteam is an IT consulting group.
Combining consulting and technology solutions offers enables
Devoteam to provide its customers with independent advice and
effective solutions to align their information system's technical
infrastructure with their operational objectives.
The group achieved a turnover of 199 million euros in 2005
an operating margin of 7% and counts 2,100 employees through
12 European countries and the Middle East.
Listed on the Euronext Paris Nouveau Marche and part of the Nexteconomy,
IT CAC, IT CAC 50, SBF 250 index of Euronext Paris.
www.devoteam.com
+---------------------------------------------------------------------+
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: In or Exists?
@ 2006-02-15 16:07 Markus Schaber <schabi@logix-tt.com>
parent: Fabrice.Sznajderman@devoteam.com
2 siblings, 0 replies; 17+ messages in thread
From: Markus Schaber @ 2006-02-15 16:07 UTC (permalink / raw)
To: Fabrice.Sznajderman@devoteam.com; pgsql-jdbc
Hi, Fabrice,
Fabrice.Sznajderman@devoteam.com wrote:
> how I can know the version of my postgres DataBase ?
> I know is 7.3.x but I don't know for the 'x' number ..
use psql or another command line tool, and send the query
SELECT VERSION();
HTH,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: In or Exists?
@ 2006-02-15 16:19 Achilleus Mantzios <achill@matrix.gatewaynet.com>
parent: Fabrice.Sznajderman@devoteam.com
0 siblings, 1 reply; 17+ messages in thread
From: Achilleus Mantzios @ 2006-02-15 16:19 UTC (permalink / raw)
To: Fabrice.Sznajderman@devoteam.com; +Cc: pgsql-jdbc; pgsql-jdbc-owner@postgresql.org
O Fabrice.Sznajderman@devoteam.com Ýãñáøå óôéò Feb 15, 2006 :
> Thank for your answer!
>
> I use 7.3. I think it the same between 7.4 and 7.3?
No in 7.3 exists wins.
Why are you so behind?
>
>
>
>
> Fabrice
>
>
>
>
>
> Achilleus Mantzios <achill@matrix.gatewaynet.com>
> Envoyé par : pgsql-jdbc-owner@postgresql.org
> 15/02/2006 16:57
>
> A
> Fabrice.Sznajderman@devoteam.com
> cc
> pgsql-jdbc@postgresql.org, <pgsql-jdbc-owner@postgresql.org>
> Objet
> Re: [JDBC] In or Exists?
>
>
>
>
>
>
> O Fabrice.Sznajderman@devoteam.com ÎγÏαÏε ÏÏÎ¹Ï Feb 15, 2006 :
>
> > Hello,
> >
> > According to you, What it better to use, the IN or EXISTS predicat?
> >
> > I saw on internet it's better to use EXITS . but I would like to have
> > another point of view..
> >
> > Thanks in advance
>
> Prior to 7.4 IN was a looser,
> in 7.4 IN sometimes is by far a clear winner,
> i dunno in 8.*
>
> >
> >
> > Fabrice
> >
> > +---------------------------------------------------------------------+
> > About Devoteam:
> >
> > Devoteam is an IT consulting group.
> > Combining consulting and technology solutions offers enables
> > Devoteam to provide its customers with independent advice and
> > effective solutions to align their information system's technical
> > infrastructure with their operational objectives.
> > The group achieved a turnover of 199 million euros in 2005
> > an operating margin of 7% and counts 2,100 employees through
> > 12 European countries and the Middle East.
> > Listed on the Euronext Paris Nouveau Marche and part of the Nexteconomy,
> > IT CAC, IT CAC 50, SBF 250 index of Euronext Paris.
> > www.devoteam.com
> > +---------------------------------------------------------------------+
> >
>
>
--
-Achilleus
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: In or Exists?
@ 2006-02-15 16:24 John R Pierce <pierce@hogranch.com>
parent: Fabrice.Sznajderman@devoteam.com
2 siblings, 0 replies; 17+ messages in thread
From: John R Pierce @ 2006-02-15 16:24 UTC (permalink / raw)
To: Fabrice.Sznajderman@devoteam.com; +Cc: pgsql-jdbc
Fabrice.Sznajderman@devoteam.com wrote:
>
> thank you for your answer!
>
>
> how I can know the version of my postgres DataBase ?
> I know is 7.3.x but I don't know for the 'x' number ..
$ psql --version
psql (PostgreSQL) 8.1.2
...
or...
$ psql --version
psql (PostgreSQL) 7.4.5
(two different machines here)
this just shows the version of psql itself, which SHOULD be the same as
your server version. if you want to confirm this,
$ psql -c "show server_version;"
server_version
----------------
7.4.5
(1 row)
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: In or Exists?
@ 2006-02-15 16:27 Scott Marlowe <smarlowe@g2switchworks.com>
parent: Fabrice.Sznajderman@devoteam.com
2 siblings, 1 reply; 17+ messages in thread
From: Scott Marlowe @ 2006-02-15 16:27 UTC (permalink / raw)
To: Fabrice.Sznajderman@devoteam.com; +Cc: pgsql-jdbc; pgsql-jdbc-owner@postgresql.org
On Wed, 2006-02-15 at 09:59, Fabrice.Sznajderman@devoteam.com wrote:
> thank you for your answer!
>
>
> how I can know the version of my postgres DataBase ?
> I know is 7.3.x but I don't know for the 'x' number ..
psql -V will tell you the client version. or psql template1 -c "select
version();" will tell you the version of the backend server.
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: In or Exists?
@ 2006-02-15 16:27 Fabrice.Sznajderman@devoteam.com
parent: Scott Marlowe <smarlowe@g2switchworks.com>
0 siblings, 2 replies; 17+ messages in thread
From: Fabrice.Sznajderman@devoteam.com @ 2006-02-15 16:27 UTC (permalink / raw)
To: pgsql-jdbc; pgsql-jdbc-owner@postgresql.org
I tried select version();
it gave me this:
PostgreSQL 7.2.3-RH on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2
20020903 (Red Hat Linux 8.0 3.2-7)
I really newbie with postgres...
Can u help me?
thank in advance!!
Fabrice
Scott Marlowe <smarlowe@g2switchworks.com>
Envoyé par : pgsql-jdbc-owner@postgresql.org
15/02/2006 17:27
A
Fabrice.Sznajderman@devoteam.com
cc
Objet
Re: [JDBC] In or Exists?
On Wed, 2006-02-15 at 09:59, Fabrice.Sznajderman@devoteam.com wrote:
> thank you for your answer!
>
>
> how I can know the version of my postgres DataBase ?
> I know is 7.3.x but I don't know for the 'x' number ..
psql -V will tell you the client version. or psql template1 -c "select
version();" will tell you the version of the backend server.
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
+---------------------------------------------------------------------+
About Devoteam:
Devoteam is an IT consulting group.
Combining consulting and technology solutions offers enables
Devoteam to provide its customers with independent advice and
effective solutions to align their information system's technical
infrastructure with their operational objectives.
The group achieved a turnover of 199 million euros in 2005
an operating margin of 7% and counts 2,100 employees through
12 European countries and the Middle East.
Listed on the Euronext Paris Nouveau Marche and part of the Nexteconomy,
IT CAC, IT CAC 50, SBF 250 index of Euronext Paris.
www.devoteam.com
+---------------------------------------------------------------------+
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: In or Exists?
@ 2006-02-15 16:41 Markus Schaber <schabi@logix-tt.com>
parent: Fabrice.Sznajderman@devoteam.com
1 sibling, 1 reply; 17+ messages in thread
From: Markus Schaber @ 2006-02-15 16:41 UTC (permalink / raw)
To: Fabrice.Sznajderman@devoteam.com; +Cc: pgsql-jdbc; pgsql-jdbc-owner@postgresql.org
Hi, Fabrice,
Fabrice.Sznajderman@devoteam.com wrote:
>
> I tried select version();
>
> it gave me this:
>
> PostgreSQL 7.2.3-RH [...]
This tells us that you use a Redhat specific PostgreSQL version 7.2, dot
release 7.2.3.
7.2 is pretty old, and not supported by the PostgreSQL team any more
(since the 8.1 release, AFAIR.)
And even for 7.2, 7.2.8 is the newest dot release.
You can fetch it from
ftp://ftp.de.postgresql.org/mirror/postgresql/binary/OLD/
or other postgresql mirrors.
HTH,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: In or Exists?
@ 2006-02-15 16:48 Scott Marlowe <smarlowe@g2switchworks.com>
parent: Fabrice.Sznajderman@devoteam.com
1 sibling, 2 replies; 17+ messages in thread
From: Scott Marlowe @ 2006-02-15 16:48 UTC (permalink / raw)
To: Fabrice.Sznajderman@devoteam.com; +Cc: pgsql-jdbc; pgsql-jdbc-owner@postgresql.org
On Wed, 2006-02-15 at 10:27, Fabrice.Sznajderman@devoteam.com wrote:
> I tried select version();
>
> it gave me this:
>
> PostgreSQL 7.2.3-RH on i686-pc-linux-gnu, compiled by GCC gcc (GCC)
> 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
OK... You're running a really really old version of PostgreSQL.
It has known data loss and crash inducing bugs.
Let your boss know that you should upgrade to, at a minimum, the latest
version of 7.2, which is 7.2.8.
7.2 is no longer supported. It's very old. It's creaky in fact. I
would recommend upgrading to the latest 8.0 or 8.1 series, or 7.4 as a
minimum.
Many IT managers prefer to stick with older "known" versions of
software. While I understand this, it's really mostly a comfort issue.
And nothing makes me more uncomfortable than a database error that means
all my data just disappeared.
Oh, and update your OS as well if you can. RH 8.0 is also no longer
supported. It has many unpatched security bugs. You are running an
unreliable, unstable version of postgresql on an unreliable, insecure
platform. Expect no mercy from the gods or the members of this list
when things go wrong. And they will.
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: In or Exists?
@ 2006-02-15 17:35 Tom Lane <tgl@sss.pgh.pa.us>
parent: Scott Marlowe <smarlowe@g2switchworks.com>
1 sibling, 0 replies; 17+ messages in thread
From: Tom Lane @ 2006-02-15 17:35 UTC (permalink / raw)
To: Scott Marlowe <smarlowe@g2switchworks.com>; +Cc: Fabrice.Sznajderman@devoteam.com; pgsql-jdbc
Scott Marlowe <smarlowe@g2switchworks.com> writes:
> On Wed, 2006-02-15 at 10:27, Fabrice.Sznajderman@devoteam.com wrote:
>> PostgreSQL 7.2.3-RH on i686-pc-linux-gnu, compiled by GCC gcc (GCC)
>> 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
> OK... You're running a really really old version of PostgreSQL.
In fact, it's so old that I can't even find any trace in Red Hat's
internal CVS of such a version having been released :-(. AFAICT, RHL 8
shipped with Postgres 7.3. I think that this very probably isn't an
official Red Hat RPM at all, but something that was built locally using
already-obsolete Postgres sources.
Upgrade *now*, don't wait to get burnt. And I concur with Scott about
upgrading the whole OS while you're at it.
regards, tom lane
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: In or Exists?
@ 2006-02-15 17:56 Kris Jurka <books@ejurka.com>
parent: Fabrice.Sznajderman@devoteam.com
1 sibling, 0 replies; 17+ messages in thread
From: Kris Jurka @ 2006-02-15 17:56 UTC (permalink / raw)
To: Fabrice.Sznajderman@devoteam.com; +Cc: pgsql-jdbc
On Wed, 15 Feb 2006, Fabrice.Sznajderman@devoteam.com wrote:
> According to you, What it better to use, the IN or EXISTS predicat?
>
This questino has nothing to do with Java or JDBC and is not appropriate
for this list. Please send future questions of this sort to
pgsql-general@postgresql.org. Also do not include the list owner email
address. This address is only for problems with the list itself like
subscribing or unsubscribing, not for general questions.
Kris Jurka
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: In or Exists?
@ 2006-02-15 18:34 John R Pierce <pierce@hogranch.com>
parent: Scott Marlowe <smarlowe@g2switchworks.com>
1 sibling, 0 replies; 17+ messages in thread
From: John R Pierce @ 2006-02-15 18:34 UTC (permalink / raw)
To: Fabrice.Sznajderman@devoteam.com; +Cc: pgsql-jdbc
> Oh, and update your OS as well if you can. RH 8.0 is also no longer
> supported. It has many unpatched security bugs. You are running an
> unreliable, unstable version of postgresql on an unreliable, insecure
> platform.
indeed. The 'proper' upgrade is a clean install of a up to date
supported distribution, perhaps RHEL4 or CentOS4, or perhaps something
else, however I also know how hard this can be on a production system.
There is an alternative, the Fedora people have a 'fedora legacy'
project which is still supporting RH9 with critical fixes, you can
fairly easily update RH8 to RH9 (they are very similar systems), and
then get the latest updates for this platform.
This will give you some breathing room while you plan the major upgrade
to RHEL4 or something else...
I've done this on some production servers where there was lack of money
or resources to setup a whole new server (these are servers that belong
to 3rd parties for which noone is being paid to run, so there were no
resources available for a proper upgrade).
I would first dump backups of all your postgres databases(!!) Then I'd
make backups of all your core file systems so you can revert if things
backfire on you for unexplained reasons...
then, follow these instructions...
http://www.fedora.us/wiki/LegacyRPMUpgrade
and then these...
http://www.fedoralegacy.org/docs/yum-rh9.php
then remove any and all traces of RH distributions of older postgres
versions (`rpm -qa | grep postgres`, then rpm -e xxxx), install the
latest postgres 8.1 from the RPMs on the postgres download pages, and
recreate your postgres users, and restore your postgres dump, and you
should be good to go.
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: In or Exists?
@ 2006-02-17 10:15 Fabrice.Sznajderman@devoteam.com
parent: Markus Schaber <schabi@logix-tt.com>
0 siblings, 0 replies; 17+ messages in thread
From: Fabrice.Sznajderman@devoteam.com @ 2006-02-17 10:15 UTC (permalink / raw)
To: pgsql-jdbc; pgsql-jdbc-owner@postgresql.org
Hello,
Thanks a lot for this information! I think I 'll upgrade my environnement
!
Thank for the link to!!!
best regards
Fabrice
Markus Schaber <schabi@logix-tt.com>
Envoyé par : pgsql-jdbc-owner@postgresql.org
15/02/2006 17:41
A
Fabrice.Sznajderman@devoteam.com
cc
Objet
Re: [JDBC] In or Exists?
Hi, Fabrice,
Fabrice.Sznajderman@devoteam.com wrote:
>
> I tried select version();
>
> it gave me this:
>
> PostgreSQL 7.2.3-RH [...]
This tells us that you use a Redhat specific PostgreSQL version 7.2, dot
release 7.2.3.
7.2 is pretty old, and not supported by the PostgreSQL team any more
(since the 8.1 release, AFAIR.)
And even for 7.2, 7.2.8 is the newest dot release.
You can fetch it from
ftp://ftp.de.postgresql.org/mirror/postgresql/binary/OLD/
or other postgresql mirrors.
HTH,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in EU! www.ffii.org
www.nosoftwarepatents.org
---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster
+---------------------------------------------------------------------+
About Devoteam:
Devoteam is an IT consulting group.
Combining consulting and technology solutions offers enables
Devoteam to provide its customers with independent advice and
effective solutions to align their information system's technical
infrastructure with their operational objectives.
The group achieved a turnover of 199 million euros in 2005
an operating margin of 7% and counts 2,100 employees through
12 European countries and the Middle East.
Listed on the Euronext Paris Nouveau Marche and part of the Nexteconomy,
IT CAC, IT CAC 50, SBF 250 index of Euronext Paris.
www.devoteam.com
+---------------------------------------------------------------------+
^ permalink raw reply [nested|flat] 17+ messages in thread
end of thread, other threads:[~2006-02-17 10:15 UTC | newest]
Thread overview: 17+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-02-15 14:36 In or Exists? Fabrice.Sznajderman@devoteam.com
2006-02-15 15:57 ` Achilleus Mantzios <achill@matrix.gatewaynet.com>
2006-02-15 15:11 ` Fabrice.Sznajderman@devoteam.com
2006-02-15 16:19 ` Achilleus Mantzios <achill@matrix.gatewaynet.com>
2006-02-15 15:36 ` Fabrice.Sznajderman@devoteam.com
2006-02-15 15:48 ` Scott Marlowe <smarlowe@g2switchworks.com>
2006-02-15 15:59 ` Fabrice.Sznajderman@devoteam.com
2006-02-15 16:07 ` Markus Schaber <schabi@logix-tt.com>
2006-02-15 16:24 ` John R Pierce <pierce@hogranch.com>
2006-02-15 16:27 ` Scott Marlowe <smarlowe@g2switchworks.com>
2006-02-15 16:27 ` Fabrice.Sznajderman@devoteam.com
2006-02-15 16:41 ` Markus Schaber <schabi@logix-tt.com>
2006-02-17 10:15 ` Fabrice.Sznajderman@devoteam.com
2006-02-15 16:48 ` Scott Marlowe <smarlowe@g2switchworks.com>
2006-02-15 17:35 ` Tom Lane <tgl@sss.pgh.pa.us>
2006-02-15 18:34 ` John R Pierce <pierce@hogranch.com>
2006-02-15 17:56 ` Kris Jurka <books@ejurka.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