Re: "too clever" when creating SQL functions

From: SZŰCS Gábor <surrano(at)mailbox(dot)hu>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: "too clever" when creating SQL functions
Date: 2003-05-09 15:31:42
Message-ID: 004c01c31640$17c350a0$0a03a8c0@fejleszt2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

István :)

This answers my question, thanks :)

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

---------------------------- cut here ------------------------------
----- Original Message -----
From: "Stephan Szabo" <sszabo(at)megazone23(dot)bigpanda(dot)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';

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Larry Rosenman 2003-05-09 16:10:55 %ROWTYPE and insert
Previous Message SZŰCS Gábor 2003-05-09 15:30:13 Re: Overwhelming DEBUG messages