dbTalk Databases Forums  

Conversion from version 7 to 8

comp.databases.postgresql comp.databases.postgresql


Discuss Conversion from version 7 to 8 in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Lucifer
 
Posts: n/a

Default Conversion from version 7 to 8 - 03-09-2007 , 05:03 PM






Hi. I must migrate a database from a server with postgresql 7 to a
server with postgresql 8.

Do I need some conversion?

Thanks.

Reply With Quote
  #2  
Old   
EMartinez
 
Posts: n/a

Default Re: Conversion from version 7 to 8 - 03-11-2007 , 12:35 AM






On Mar 9, 5:03 pm, Lucifer <luci... (AT) spamcop (DOT) net> wrote:
Quote:
Hi. I must migrate a database from a server with postgresql 7 to a
server with postgresql 8.

Do I need some conversion?

Thanks.
There have been several improvements since the earlier PostgreSQL 7.
As far as I know, you should not need anything special (at least, in
terms of upgrading/migrating the database itself). I would suggest
using pg_dump to backup the database(s) and then use psql to restore
the database. Hope this helps.

Regards,

Enrique Martinez
Sr. Web/Database Developer



Reply With Quote
  #3  
Old   
HansH
 
Posts: n/a

Default Re: Conversion from version 7 to 8 - 03-11-2007 , 06:04 AM



"EMartinez" <emartinez.pr1 (AT) gmail (DOT) com> schreef in bericht
news:1173594924.803602.201440 (AT) 64g2000cwx (DOT) googlegroups.com...
Quote:
On Mar 9, 5:03 pm, Lucifer <luci... (AT) spamcop (DOT) net> wrote:
Hi. I must migrate a database from a server with postgresql 7 to a
server with postgresql 8.

Do I need some conversion?

Thanks.

There have been several improvements since the earlier PostgreSQL 7.
As far as I know, you should not need anything special (at least, in
terms of upgrading/migrating the database itself). I would suggest
using pg_dump to backup the database(s) and then use psql to restore
the database. Hope this helps.

Current versions of some clients eg PgAdmin may not handle versions below
7.4.

Some changes may require you to modify your queries ...
.... FTTOMH based on upgrading 7.3 to 8.1 April last
- 'where field > 5' will crash for field is null
'where '0'||field > 5' may save the day, but will ignore its index
- '0+field::interval' will crash for TWO reasons
use '1970-0-0':date+field::text::interval'
- 'group by field' is no longer guranteed to sort too
use 'group by field order by field' to restore consistent results
- 'max(field)' will use index
workaround 'order by field limit 1' is no longer needed
Go down the list of changes at
http://www.postgresql.org/docs/8.2/i...e/release.html
for more "deprecated features"

Hans




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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.