Re: Getting closer with functions, but... - Mailing list pgsql-general

From Philip Warner
Subject Re: Getting closer with functions, but...
Date
Msg-id 3.0.5.32.20000713163409.0268a250@mail.rhyme.com.au
Whole thread Raw
In response to Getting closer with functions, but...  (Scott Holmes <sholmes@pacificnet.net>)
List 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 by date:

Previous
From: Erich
Date:
Subject: References on functions?
Next
From: Tom Lane
Date:
Subject: Re: select for update not locking properly.