Re: Help: a rare problem with backing and restoring

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: bombadil(at)wanadoo(dot)es
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Help: a rare problem with backing and restoring
Date: 2002-04-18 15:27:14
Message-ID: 1019143634.27903.265.camel@linda
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2002-04-18 at 13:50, bombadil(at)wanadoo(dot)es wrote:
...
> First line is illegal for referential integrity because of
> tcnico_aviso[aviso] = 0 (aviso[nmero] = 0 doesn't exist),
> but the other two are perfectly legal. If I insert then from psql, I
> get no error. But when I execute data.sql script none of them are
> inserted in tcnico_aviso...
>
> I don't understand this situation. What can be the problem?. It have
> no sense and I am going crazy

You need to show the script. All I can think of is that your script is
including the illegal insert inside a transaction; if one command in a
transaction fails, the whole transaction is rolled back, so none of the
inserts would be done.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C

"For by grace are ye saved through faith; and that not
of yourselves; it is the gift of God, not of works,
lest any man should boast." Ephesians 2:8,9

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2002-04-18 15:27:59 Re: Performance of column order
Previous Message Bruce Momjian 2002-04-18 14:29:31 Re: Problem with factorial operator