From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: SZŰCS Gábor <surrano@mailbox.hu>
Cc: pgsql-sql@postgresql.org
Subject: Re: "too clever" when creating SQL functions
Date: Thu, 8 May 2003 12:22:16 -0700 (PDT)
Message-ID: <20030508122129.F46321-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <009101c31580$b042a260$0a03a8c0@fejleszt2>
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';
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, surrano@mailbox.hu
Subject: Re: "too clever" when creating SQL functions
In-Reply-To: <20030508122129.F46321-100000@megazone23.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox