469,317 Members | 1,833 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,317 developers. It's quick & easy.

A problem during restoring database from PostgreSql 6.5.3/7.1.3 to 7.4

Hello

I can dump data from old dababase(Postgresql 6.5.3), but new problem came out when I restore the data to postgresql 7.4.

It went out during the COPY command, if I do it in such command lines:
1. pg_dump news -f pgsql-database-news.sql #in old system with postgresql 6.5.3
2. su - postgres #in new system with postgresql 7.4
3. createdb -T template0 news
4. psql news < pgsql-database-news.sql
------
ERROR: missing data for column "user_id"
CONTEXT: COPY newses, line 1:
------

But if I do it in such command line, it works well :
1. pg_dump -d news -f pgsql-data-news.sql #in old system with postgresql 6.5.3
2. su - postgres #in new system with postgresql 7.4
3. createdb -T template0 news
4. psql news < pgsql-data-news.sql

The database looks fine but I'm not sure it is really good.
Then I try postgresql 7.1.3, and I found that it is very well from 6.5.3 to 7.1.3 in the two kind of
command line.
Later I also found that it likes the 6.5.3 when I dump/restore the data from 7.1.3 to 7.4.

Could Anybody explain it? Whether there is a version with big change between 7.1.3 and 7.4 or not?  

        

             Yours Wind Wood
              wi******@jingxian.xmu. edu.cn
                 2003-12-09

---------------------------(end of broadcast)---------------------------TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html

Nov 12 '05 #1
0 1157

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Fischer Ulrich | last post: by
5 posts views Thread by Mike Nolan | last post: by
3 posts views Thread by mike | last post: by
4 posts views Thread by Egyd Csaba | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.