On Thu, 8 May 2003, [iso-8859-2] SZCS Gbor 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';