Re: Getting closer with functions, but...

Поиск
Список
Период
Сортировка
От Philip Warner
Тема Re: Getting closer with functions, but...
Дата
Msg-id 3.0.5.32.20000713163409.0268a250@mail.rhyme.com.au
обсуждение исходный текст
Ответ на Getting closer with functions, but...  (Scott Holmes <sholmes@pacificnet.net>)
Список pgsql-general
At 20:58 12/07/00 -0700, Scott Holmes wrote:
>
>This function works but is not selective enough.  The tg_argv[] are pointers
>to the arguments passed.  And they do work correctly.
>
...
>
>Is there a syntax that will allow me to build an sql statement for use in
>theis funcation (ie delete from stxnoted where filename = fname and
record_key
>= rkey).

Writing it in C will enable you to build SQL statements based on pretty
much anything, if that helps. The stuff in contrib/spi & contrib/ri_?? has
some basic and some more complex examples. The manual section on triggers
also includes a useful example.






----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.C.N. 008 659 498)             |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|
                                 |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/

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

Предыдущее
От: Erich
Дата:
Сообщение: References on functions?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: select for update not locking properly.