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

From SZŰCS Gábor
Subject Re: "too clever" when creating SQL functions
Date
Msg-id 004c01c31640$17c350a0$0a03a8c0@fejleszt2
Whole thread Raw
In response to Re: "too clever" when creating SQL functions  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-sql
István :)

This answers my question, thanks :)

G.
--
while (!asleep()) sheep++;

---------------------------- cut here ------------------------------
----- Original Message -----
From: "Stephan Szabo" <sszabo@megazone23.bigpanda.com>
Sent: Thursday, May 08, 2003 9:22 PM



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: "SZŰCS Gábor"
Date:
Subject: Re: Overwhelming DEBUG messages
Next
From: Larry Rosenman
Date:
Subject: %ROWTYPE and insert