Re: "too clever" when creating SQL functions

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: "too clever" when creating SQL functions
Дата
Msg-id 200305072010.49526.dev@archonet.com
обсуждение исходный текст
Ответ на "too clever" when creating SQL functions  ("SZŰCS Gábor" <surrano@mailbox.hu>)
Список 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



В списке pgsql-sql по дате отправления:

Предыдущее
От: mdc@keko.com.ar
Дата:
Сообщение: help database corruption
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: help database corruption