Unix Technical Forum

Need help to migrate pqSQL db 8.0.3 to 8.2.6

This is a discussion on Need help to migrate pqSQL db 8.0.3 to 8.2.6 within the Pgsql General forums, part of the PostgreSQL category; --> Hi All, I installed pqsql 8.2.6 on a new server. I need to migrate the data from pqSQL db ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 12:22 AM
Tri Quach
 
Posts: n/a
Default Need help to migrate pqSQL db 8.0.3 to 8.2.6

Hi All,



I installed pqsql 8.2.6 on a new server. I need to migrate the data from
pqSQL db 8.0.3 on the old server to 8.2.6 on the new server. Can anyone
provide me a document how to migrate?



Thank you for your help.

Tri


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 12:22 AM
Andrej Ricnik-Bay
 
Posts: n/a
Default Re: Need help to migrate pqSQL db 8.0.3 to 8.2.6

On 25/03/2008, Tri Quach <tquach@k12.hi.us> wrote:
> Hi All,



> I installed pqsql 8.2.6 on a new server. I need to migrate the data from
> pqSQL db 8.0.3 on the old server to 8.2.6 on the new server. Can anyone
> provide me a document how to migrate?

It's part of the package. Read the INSTALL document that comes with
postgres, it has an UPGRADE section. In a nutshell you want to use
pg_dump (or pg_dumpall, depending on how many databases you
have loaded) ... you can either save the files, install the new version
and import them, or you can (if you start the newer version on a
different port than 5432 and have it use a different base directory)
have both versions running at the same time.

What OS & version are you running PG on? And if you can, use 8.2.7


> Thank you for your help.
>
> Tri

Cheers,
Andrej


--
Please don't top post, and don't use HTML e-Mail :} Make your quotes concise.

http://www.american.edu/econ/notes/htmlmail.htm

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 12:23 AM
Tri Quach
 
Posts: n/a
Default Re: Need help to migrate pqSQL db 8.0.3 to 8.2.6

Hi Andrej,

I am running on Linux, Red Hat 3.
I have hard time to use pg_dump command. Can you give me the syntax of
pgdump?

This is the error I got.

[root@lyris2 backups]# ls
[root@lyris2 backups]# pg_dumpall > dbfile
pg_dumpall: could not connect to database "template1": FATAL: role "root"
does not exist

[root@lyris3 backups]# PGUSER=nssb pg_dumpall > dbfile
pg_dumpall: query failed: ERROR: permission denied for relation pg_authid
pg_dumpall: query was: SELECT rolname, rolsuper, rolinherit, rolcreaterole,
rolcreatedb, rolcatupdate, rolcanlogin, rolconnlimit, rolpassword,
rolvaliduntil, pg_catalog.shobj_description(oid, 'pg_authid') as rolcomment
FROM pg_authid ORDER BY 1


Thank you for your help.
Tri.


-----Original Message-----
From: pgsql-general-owner@postgresql.org
[mailtogsql-general-owner@postgresql.org] On Behalf Of Andrej Ricnik-Bay
Sent: Monday, March 24, 2008 3:58 PM
To: Tri Quach
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Need help to migrate pqSQL db 8.0.3 to 8.2.6

On 25/03/2008, Tri Quach <tquach@k12.hi.us> wrote:
> Hi All,



> I installed pqsql 8.2.6 on a new server. I need to migrate the data from
> pqSQL db 8.0.3 on the old server to 8.2.6 on the new server. Can anyone
> provide me a document how to migrate?

It's part of the package. Read the INSTALL document that comes with
postgres, it has an UPGRADE section. In a nutshell you want to use
pg_dump (or pg_dumpall, depending on how many databases you
have loaded) ... you can either save the files, install the new version
and import them, or you can (if you start the newer version on a
different port than 5432 and have it use a different base directory)
have both versions running at the same time.

What OS & version are you running PG on? And if you can, use 8.2.7


> Thank you for your help.
>
> Tri

Cheers,
Andrej


--
Please don't top post, and don't use HTML e-Mail :} Make your quotes
concise.

http://www.american.edu/econ/notes/htmlmail.htm

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

__________________________________________________ ____________________
This email was scanned by the MessageLabs Security System contracted by the
Hawaii Dept Of Education. If you receive suspicious/phish email, forward a
copy to spamreport@k12.hi.us This helps us monitor suspicious/phish email
getting thru. You will not receive a response from us, but rest assured the
information received will help to build additional protection. For info
about this service please visit http://www.messagelabs.com/email
__________________________________________________ ____________________


--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 12:23 AM
Andrej Ricnik-Bay
 
Posts: n/a
Default Re: Need help to migrate pqSQL db 8.0.3 to 8.2.6

On 26/03/2008, Tri Quach <tquach@k12.hi.us> wrote:
> Hi Andrej,

Hi Tri!

> I am running on Linux, Red Hat 3.
> I have hard time to use pg_dump command. Can you give me the syntax of
> pgdump?

Not a syntax-problem; to use pg_dumpall you need to be
the postgres (superuser).

su - postgres
pg_dumpall > dbfile

If you'd rather run it individually for each DB become the
user who owns the respective DB.


> Thank you for your help.
>
> Tri.

Cheers,
Andrej


--
Please don't top post, and don't use HTML e-Mail :} Make your quotes concise.

http://www.american.edu/econ/notes/htmlmail.htm

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:08 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com