pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: SZŰCS Gábor <surrano@mailbox.hu>
To: pgsql-sql@postgresql.org
Subject: Re: "too clever" when creating SQL functions
Date: Fri, 9 May 2003 17:31:42 +0200
Message-ID: <004c01c31640$17c350a0$0a03a8c0@fejleszt2> (raw)
References: <20030508122129.F46321-100000@megazone23.bigpanda.com>

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




view thread (7+ messages)

Message-ID: <004c01c31640$17c350a0$0a03a8c0@fejleszt2>
Permalink:  ../004c01c31640$17c350a0$0a03a8c0@fejleszt2/
Also on:    postgresql.org/message-id/004c01c31640$17c350a0$0a03a8c0@fejleszt2

 · 

reply

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: surrano@mailbox.hu
  Subject: Re: "too clever" when creating SQL functions
  In-Reply-To: <004c01c31640$17c350a0$0a03a8c0@fejleszt2>

* 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