Re: Getting closer with functions, but...

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: Scott Holmes <sholmes(at)pacificnet(dot)net>, pgsql-general(at)postgresql(dot)org (PG-General)
Subject: Re: Getting closer with functions, but...
Date: 2000-07-13 06:34:09
Message-ID: 3.0.5.32.20000713163409.0268a250@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 |/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-07-13 07:07:57 Re: lztext and compression ratios...
Previous Message Erich 2000-07-13 04:40:31 References on functions?