pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: Please help cache lookup failed
2+ messages / 2 participants
[nested] [flat]

* Re: Please help cache lookup failed
@ 2000-06-27 21:48  Peter Vazsonyi <neko@kredit.sth.szif.hu>
  1 sibling, 0 replies; 2+ messages in thread

From: Peter Vazsonyi @ 2000-06-27 21:48 UTC (permalink / raw)
  To: Michael Fraley <fraley@usfca.edu>; +Cc: pgsql-hackers@postgresql.org, Michael Fraley <fraley@beta.usfca.edu>



This works, but you may create the function first...
And then the trigger...

On Tue, 27 Jun 2000, Michael Fraley wrote:

> ERROR:  fmgr_info: function 19104: cache lookup failed

> create subscriptions table
> -------------------
> CREATE SEQUENCE "subscriptions_script_id_seq" start 1 increment 1 maxvalue 
>                 2147483647 minvalue 1  cache 1 ;
> CREATE TABLE "subscriptions" (
> 	"script_id" int4 DEFAULT nextval('subscriptions_script_id_seq') NOT NULL,
> 	"mag_id" int4 NOT NULL,
> 	"paid_amount" money NOT NULL,
> 	"start_date" date NOT NULL,
> 	"end_date" date NOT NULL,
> 	"notes" text);
> CREATE UNIQUE INDEX "subscriptions_script_id_key" on "subscriptions" using btree 
>                ( "script_id" "int4_ops" );
> CREATE TRIGGER "sub_mag_trigger" BEFORE INSERT OR UPDATE ON "subscriptions" 
>               FOR EACH ROW EXECUTE PROCEDURE 
>               check_primary_key ('mag_id', 'magazines', 'mag_id');
> 
> create function
> ------------
> CREATE FUNCTION "check_primary_key" ( ) RETURNS opaque AS
>               '/usr/local/pgsql/lib/modules/refint.so' LANGUAGE 'C';
> 
> 
>  -- 
> 
>   Michael Fraley
>   fraley@usfca.edu
>   http://www.usfca.edu/~fraley
> 






^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Please help cache lookup failed
@ 2000-06-27 21:49  Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 2+ messages in thread

From: Tom Lane @ 2000-06-27 21:49 UTC (permalink / raw)
  To: Michael Fraley <fraley@usfca.edu>; +Cc: pgsql-hackers@postgresql.org, Michael Fraley <fraley@beta.usfca.edu>

Michael Fraley <fraley@usfca.edu> writes:
> I just upgraded from 6.5.2 to 7.0.2 on SuSE 6.3 Linux kernel 2.2.13, and
> now I get this message when trying to insert records:

> ERROR:  fmgr_info: function 19104: cache lookup failed

Did you perhaps delete and recreate check_primary_key() without
also recreating the triggers that refer to it?

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-06-27 21:49 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-06-27 21:48 ` Peter Vazsonyi <neko@kredit.sth.szif.hu>
2000-06-27 21:49 ` Tom Lane <tgl@sss.pgh.pa.us>

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