Re: "too clever" when creating SQL functions - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: "too clever" when creating SQL functions
Date
Msg-id 20030508122129.F46321-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: "too clever" when creating SQL functions  ("SZŰCS Gábor" <surrano@mailbox.hu>)
List pgsql-sql
On Thu, 8 May 2003, [iso-8859-2] SZ�CS G�bor wrote:

> didn't make it in data-only (-a) mode either.

I forgot to mention that it probably requires that there be foreign keys.
:)

But, it basically does:

-- Disable triggers
UPDATE "pg_class" SET "reltriggers" = 0 WHERE "relname" = 'a';

COPY "a" FROM stdin;
\.
-- Enable triggers
UPDATE pg_class SET reltriggers = (SELECT count(*) FROM pg_trigger where
pg_class.oid = tgrelid) WHERE relname = 'a';



pgsql-sql by date:

Previous
From: Alex Rice
Date:
Subject: does this require a stored procedure?
Next
From: chester c young
Date:
Subject: Re: does this require a stored procedure?