Compatibility Issue.

Questions and answers regarding general SQL and backend databases

Compatibility Issue.

Postby ashutos » Fri Nov 11, 2011 11:50 am

Hi All ,

I was using the servoy 5.2.9 . I was having a database back up files of version postgres 9.0 and postgres 8.4 . Both the database files could not be restored because of the higher version of the database files . So what i did is i installed a fresh version of postgres 9.1 . I tried to restore the database file of version 9.0 in postgres 9.1 . It worked fine . It restored succesfully . But after that I noticed some text fields have become fields of unknown type and it throwing some exception . so now when I am trying to take a backup it is giving some exception that dump version 9.0.1 is not matching with postgres server 9.1.0 . So what is the solution ?.



Please help . Thanks in advance.
Thanks
Ashutos
ashutos
 
Posts: 72
Joined: Fri Apr 16, 2010 1:06 pm

Re: Compatibility Issue.

Postby ashutos » Fri Nov 11, 2011 12:15 pm

Hi All,

Please do reply . I am wiating for your feedback.
Thanks
Ashutos
ashutos
 
Posts: 72
Joined: Fri Apr 16, 2010 1:06 pm

Re: Compatibility Issue.

Postby ashutos » Fri Nov 11, 2011 12:21 pm

Hi All ,

Is there any GUI tool which can generate the .sql file for postgres database ? . PGAdmin doesnot generates .SQL file.
Thanks
Ashutos
ashutos
 
Posts: 72
Joined: Fri Apr 16, 2010 1:06 pm

Re: Compatibility Issue.

Postby ROCLASI » Fri Nov 11, 2011 12:56 pm

Hi ashutos,

ashutos wrote:Is there any GUI tool which can generate the .sql file for postgres database ? . PGAdmin doesnot generates .SQL file.

PgAdmin can generate SQL files just fine. Just select the backup format as 'plain'.
See screenshot:
pgadmin-backup-as-plain-sql.png
pgadmin-backup-as-plain-sql.png (60.06 KiB) Viewed 2548 times

Just remember that you can't use the restore function with those SQL files but need to execute them in a SQL editor (if they are large use psql instead).
Also if you want to make a full backup of your whole PosgreSQL install and restore it in a new PostgreSQL instance check out this post.

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium


Return to SQL Databases

Who is online

Users browsing this forum: No registered users and 29 guests

cron