473,508 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem pg_restore from 7.3 to 7.4

Hi,
I have a problem restoring a database from Postgresql 7.3 ( backup
created with 'pg_dump -Ft -b > test.tar' ) to a new database on
PostgreSQL 7.4.3 on Cygwin. I get the following error:

pg_restore: executing SEQUENCE SET t_tab_kurs_template_id_seq
pg_restore: [archiver (db)] could not execute query: ERROR: relation
"t_tab_kur
s_template_id_seq" does not exist
pg_restore: *** aborted because of error

it seems that the sequence has not been created during the restore
process and now it tries to set its start value. Is this a bug within
pg_restore?

Thanks for any advice how to compelete this restore.

Greetings,
Thomas

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 23 '05 #1
1 1824
Can you re-execute pg_dump but not output it as a tar format? Then
restore using psql. The tar format does allow one to be selective in
how a database is restored while standard pg_dump does not.

Is the tar file greater than the 8 GB file limit?

That is the limit of my knowledge....

Mike
On Fri, 2004-07-09 at 02:49, Plant Thomas wrote:
Hi,
I have a problem restoring a database from Postgresql 7.3 ( backup
created with 'pg_dump -Ft -b > test.tar' ) to a new database on
PostgreSQL 7.4.3 on Cygwin. I get the following error:

pg_restore: executing SEQUENCE SET t_tab_kurs_template_id_seq
pg_restore: [archiver (db)] could not execute query: ERROR: relation
"t_tab_kur
s_template_id_seq" does not exist
pg_restore: *** aborted because of error

it seems that the sequence has not been created during the restore
process and now it tries to set its start value. Is this a bug within
pg_restore?

Thanks for any advice how to compelete this restore.

Greetings,
Thomas

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3716
by: Sam | last post by:
I'm having trouble restoring databases that have to lo type installed in /contrib/lo. The dump seems to work just fine, I get no errors when I execute the following command #pg_dump -Fc -o -b...
0
1456
by: andy morrow | last post by:
hi, fairly new to postgres admin stuff...... i have a production machine that is running postgresql 7.1.3 also, there's a test machine which already had 7.0.3, and which i newly installed...
14
3673
by: Ron Johnson | last post by:
Hi, While on the topic of "need for in-place upgrades", I got to think- ing how the pg_restore could be speeded up. Am I wrong in saying that in the current pg_restore, all of the indexes are...
1
2179
by: nednieuws | charles | last post by:
What does this error mean: pg_restore: creating TABLE author pg_restore: creating SEQUENCE author_id pg_restore: could not execute query: ERROR: parser: parse error at or near "BY" at...
6
4936
by: Mike Charnoky | last post by:
Hello, I am currently using PostgreSQL v7.3.4 on a RedHat 8.0 system (2.4.23 kernel) using the ext3 filesystem. I am experiencing problems when performing a pg_restore using a file which is...
1
2410
by: Roopali Sharma | last post by:
Hi, I am trying to restore data from a production server (using Postgresql 7.3.x) to a test server using the latest release 7.4.1. This is what I did: 1) dropdb -U postgres testdb 2) createdb...
0
1202
by: Stefano Bonnin | last post by:
Hi, I'm a Postgis user, and I have a problem restoring data from 7.4 to 8.0..0beta2. I use the postgis_restore.pl script that comes with postgis distribution. I do the following for the dump:...
7
7747
by: Tim Penhey | last post by:
Maybe it's just me, but I can't seem to get pg_restore to restore a database... I am running 8.0 beta 2 (using the dev3 installer) on Windows XP. I created a very simple database with one...
1
10109
by: ruben | last post by:
Hi: I'm trying to dump tableA and restore it to tableB: $ ./pg_dump -Fc -t tableA databaseA -f tableA.dump -v $ ./pg_restore -t tableB -d databaseA tableA.dump -v pg_dump creates...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7115
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7489
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5047
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.