pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: SZŰCS Gábor <surrano@mailbox.hu>
To: pgsql-sql@postgresql.org
Subject: Re: "too clever" when creating SQL functions
Date: Wed, 7 May 2003 20:10:49 +0100
Message-ID: <200305072010.49526.dev@archonet.com> (raw)
In-Reply-To: <010d01c314c1$3ba30950$0a03a8c0@fejleszt2>
References: <010d01c314c1$3ba30950$0a03a8c0@fejleszt2>

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




view thread (7+ messages)  latest in thread

Message-ID: <200305072010.49526.dev@archonet.com>
Permalink:  ../200305072010.49526.dev@archonet.com/
Also on:    postgresql.org/message-id/200305072010.49526.dev@archonet.com

 · 

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: dev@archonet.com, surrano@mailbox.hu
  Subject: Re: "too clever" when creating SQL functions
  In-Reply-To: <200305072010.49526.dev@archonet.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