Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > loosing constra...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 4934 of 5158
Post > Topic >>

loosing constraint at backup

by "Sabin Coanda" <sabin.coanda@[EMAIL PROTECTED] > Apr 24, 2008 at 10:47 AM

Hi there,

I have a script running frequently in development process that copy a 
database from a linux os machine to another windows os.

On windows I have "PostgreSQL 8.2.4 on i686-pc-mingw32, compiled by GCC 
gcc.exe (GCC) 3.4.2 (mingw-special)".
On linux: "PostgreSQL 8.2.3 on i686-redhat-linux-gnu, compiled by GCC gcc 
(GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)".

The script use the following commands to dump/restore:

pg_dump.exe <src_db> -i -F c -b -v -U postgres -f <bak_file> -h src_ip -p 
src_****t
pg_restore.exe -i -d <dst_db> -v --disable-triggers -U postgres <bak_name>

In rare cases, I found one foreign key constraint is missing on
destination.

Unfortunatelly, in spite this problem happens to me since a long time, the

problem is not reproductible, and this is the reason I was reticent to
post 
it until now.
In the future, also I will keep the backup file to found whether the
problem 
is on dump or restore.

Is this problem known ?

TIA,
Sabin
 




 2 Posts in Topic:
loosing constraint at backup
"Sabin Coanda"   2008-04-24 10:47:00 
Re: loosing constraint at backup
"Sabin Coanda"   2008-04-24 12:30:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 13:49:57 CDT 2008.