1

Re: Which PostgreSQL version to use? [Was PostgreSQL 8.4]

I just wondered if PostgreSQL 8.4 was going to remain supported for the foreseeable future? I'm looking at using Ubuntu 10.04 for our warehouse and although it's possible to install pgsql 9.x I'd rather stick with the officially supported 8.4. Is there much difference between 8 and 9?

Charles Roper
Digital Development Manager | Field Studies Council
http://www.field-studies-council.org | https://twitter.com/charlesroper | https://twitter.com/fsc_digital

2

Re: Which PostgreSQL version to use? [Was PostgreSQL 8.4]

Hi Charles,

I'm not well informed about this but I can tell you that our main warehouse is running 9.1 and our test warehouse is running 8.3. My colleague, Biren, performed the upgrade to 9.1. As a user I have been unaware of any difference.

I'd assume that since the warehouse is built on the Kohana 2.3 framework and uses the database library to connect to the database there is every liklihood of 8.4 remaining supported since changing the framework would be a large task.

Jim Bacon

3

Re: Which PostgreSQL version to use? [Was PostgreSQL 8.4]

Thanks Jim, that makes sense.

Charles Roper
Digital Development Manager | Field Studies Council
http://www.field-studies-council.org | https://twitter.com/charlesroper | https://twitter.com/fsc_digital

4

Re: Which PostgreSQL version to use? [Was PostgreSQL 8.4]

Hi Charles
Its not quite so simple as that, because the report library contains custom queries which bypass the database libraries of kohana and we also use custom views on the db for reusable queries which  can use pg specific functions. In fact recently we've found some use for a function called array_agg which requires pg 8.4 +, though it is only in an optional report and the optional individuals and associations module, so the core requirement for 8.3 has not yet changed. If you are going straight to 8.4 then this shouldn't be a problem anyway.
John

John van Breda
Biodiverse IT

5

Re: Which PostgreSQL version to use? [Was PostgreSQL 8.4]

Thanks John, do you know of anything in 9+ that might make it worth expending the extra effort to install? Perhaps I should go with Ubuntu 10.11 Oneric which isn't an LTS release, but it does have an official package for PostreSQL 9.1.

UPDATE:

Having read this - http://www.psychocats.net/ubuntu/whichbuntu - I think I'll just go with 11.10 Oneiric Ocelot rather than the older 10.04 LTS release.

Please keep in mind that LTSes (Long Term Support releases) are not necessarily stabler than other releases. LTS simply means they gets three years of security updates (five years for servers) instead of just eighteen months. I would always recommend the newest release to users who are doing a clean install (as opposed to an upgrade) of Ubuntu. If you're concerned about stability, you may want to wait a little over a month after the release date for the major bugs to be fixed.

Charles Roper
Digital Development Manager | Field Studies Council
http://www.field-studies-council.org | https://twitter.com/charlesroper | https://twitter.com/fsc_digital

6

Re: Which PostgreSQL version to use? [Was PostgreSQL 8.4]

Updating from 8.4 or 8.3 to 9.1 is not straight forward. As you need to take back up for everything, uninstall the old version and reinstall the new version. Also you do need to reinstall the postgis as well. because 9.3 automatically support the postgis 1.5.

if you don't write lots of queries than worth keeping 8.4 or 8.3 as 9.1 provides relatively sophesticated query tool.

Biren Rathod
BRC Web Developer

7

Re: Which PostgreSQL version to use? [Was PostgreSQL 8.4]

In the end Ubuntu 12.04 Precise came out and that has packages for PostgreSQL 9.1 and PostGIS 1.5.3

http://packages.ubuntu.com/precise/postgresql
http://packages.ubuntu.com/precise/postgis

This seems like a really good baseline to start from, especially as it's LTS.

Charles Roper
Digital Development Manager | Field Studies Council
http://www.field-studies-council.org | https://twitter.com/charlesroper | https://twitter.com/fsc_digital

8

Re: Which PostgreSQL version to use? [Was PostgreSQL 8.4]

Thanks for the info Charles - could be handy.

John van Breda
Biodiverse IT