pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Papp, Gyozo <pgerzson@freestart.hu>
To: postgres+php <pgsql-php@postgresql.org>
Subject: SPI_execp() failed in RI_FKey_cascade_del()
Date: Tue, 9 Apr 2002 11:47:29 +0200
Message-ID: <007801c1dfab$9070d580$01fdfea9@jaguar> (raw)

Hi,

does anyone know what this error message refers to? 

PostgreSQL query failed: ERROR: SPI_execp() failed in RI_FKey_cascade_del()

The $query was "DELETE FROM request WHERE request_id=33 AND label='DEMO2';"

I have a couple of tables (about 5) that refers to table "request"
with a foreign key constraint like:

 request_id INTEGER
  CONSTRAINT n_request_id NOT NULL 
  CONSTRAINT f_request_id 
   REFERENCES request ON DELETE CASCADE 
   DEFERRABLE INITIALLY DEFERRED,

Can i work around this without recreate the schema and not delete
correponding values from respective tables one by one?



Papp Gyozo
- pgerzson@freestart.hu




Message-ID: <007801c1dfab$9070d580$01fdfea9@jaguar>
Permalink:  ../007801c1dfab$9070d580$01fdfea9@jaguar/
Also on:    postgresql.org/message-id/007801c1dfab$9070d580$01fdfea9@jaguar

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: pgerzson@freestart.hu
  Subject: Re: SPI_execp() failed in RI_FKey_cascade_del()
  In-Reply-To: <007801c1dfab$9070d580$01fdfea9@jaguar>
  References: <007801c1dfab$9070d580$01fdfea9@jaguar>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox