Re: "too clever" when creating SQL functions

From: Richard Huxton <dev(at)archonet(dot)com>
To: " SZŰCS =?iso-8859-2?q?=20G=E1bor?=" <surrano(at)mailbox(dot)hu>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: "too clever" when creating SQL functions
Date: 2003-05-07 19:10:49
Message-ID: 200305072010.49526.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wednesday 07 May 2003 6:51 pm, SZŰCS Gábor wrote:
> Dear Gurus,
>
> Please show me to the archives, if you feel like. I have an ugly function
> that can't be defined as language SQL, because it gets parsed at
> define-time, not run-time. Any ideas, other than making it plpgsql?
>
> Even better, is there a more elegant way to turn off/on triggers on a (set
> of) table(s)?

You might want to look at the output of pg_dump - IIRC that disables all your
triggers (fk's etc) and re-enables them at the end. Might be what you're
after.
--
Richard Huxton

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2003-05-07 19:16:27 Re: help database corruption
Previous Message Achilleus Mantzios 2003-05-07 19:09:17 Re: An unresolved performance problem.