Re: Pls help

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: "Roseller A(dot) Romanos" <don2_907(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Pls help
Date: 2009-07-04 04:40:52
Message-ID: 162867790907032140l45cc4cf5lab8d611e1426eebf@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2009/7/4 Roseller A. Romanos <don2_907(at)yahoo(dot)com>:
>  Hi,
>
> I really have a serious problem with this.  I hope you could give me some
> insights on how to possibly solve this problem. I have installed a new copy
> of postgres in my PC using Windows XP OS and I have copy the data folder in
> my previous installation from the other PC, my problem is that I cannot
> access the records that I have copied from the other PC.

you cannot copy postgres data files from one computer to second.
PostgreSQL is not MySQL. Use pg_dump instead or copy statement.

1. on PC1

pg_dump -t yourtable yourdatabase > yourtable.sql

2. copy yourtable.sql file from PC1 to PC2

3. on PC2

psql yourdatabase < yourtable.sql

>
> An error message pops up saying "Cache lookup failed for relation 16410".
> What does this mean?
>

your data file is not compatible with data dictionary.

http://www.postgresql.org/docs/8.3/static/backup.html

regards
Pavel Stehule

> Please help. I will really appreciate if you could give me some ideas with
> this.
> Thanks in advance and God bless.Pls
>
>
> Roseller Romanos
> STI-Pagadian
> Gillamac Building, Pagadian City
> Office Nos: (062) 2144-785
> Home Nos: (062) 2144-695
> Mobile Nos: 09205302636
>

In response to

  • Pls help at 2009-07-04 04:02:58 from Roseller A. Romanos

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2009-07-04 06:03:43 Re: Pls help
Previous Message Roseller A. Romanos 2009-07-04 04:02:58 Pls help