/[pgestraier]/trunk/pgest.sql
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/pgest.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 61 - (hide annotations)
Mon Aug 7 11:14:52 2006 UTC (17 years, 8 months ago) by dpavlin
File size: 894 byte(s)
added pgest_trigger function which allows updateable indexes
1 dpavlin 1
2 dpavlin 31 -- select * from pgest('/index/path', 'query', '@title ISTRINC foo', '@title STRA', limit, offset, ARRAY['@id','@title','@size']) as (id text, title text, size text);
3     CREATE OR REPLACE FUNCTION pgest(text, text, text, text, int, int, text[])
4 dpavlin 19 RETURNS setof record
5     AS 'pgest','pgest_attr'
6     LANGUAGE 'C' IMMUTABLE CALLED ON NULL INPUT;
7 dpavlin 25
8 dpavlin 49 -- select * from pgest('http://localhost:1978/node/trivia', 'admin', 'admin', depth, 'query', '@title ISTRINC foo', '@title STRA', limit, offset, ARRAY['@id','@title','@size']) as (id text, title text, size text);
9     CREATE OR REPLACE FUNCTION pgest(text, text, text, int, text, text, text, int, int, text[])
10 dpavlin 41 RETURNS setof record
11     AS 'pgest','pgest_node'
12     LANGUAGE 'C' IMMUTABLE CALLED ON NULL INPUT;
13 dpavlin 61
14     -- trigger for insert/update or delete
15     CREATE OR REPLACE FUNCTION pgest_trigger() RETURNS TRIGGER
16     AS 'pgest', 'pgest_trigger'
17     LANGUAGE 'C' STRICT;
18    

  ViewVC Help
Powered by ViewVC 1.1.26