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';