/[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

Contents of /trunk/pgest.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12 - (show annotations)
Wed May 25 23:38:37 2005 UTC (18 years, 11 months ago) by dpavlin
File size: 510 byte(s)
added NULL handling for optional arguments

1 drop type __pgest cascade;
2
3 CREATE TYPE __pgest AS (
4 -- id integer,
5 id text,
6 uri text,
7 title text,
8 -- size integer
9 size text
10 );
11
12 -- Search est-e index as table
13 -- select * from pgest('/index/path/','query', '@uri ISTREW .txt' limit, offset);
14 CREATE OR REPLACE FUNCTION pgest(text, text, text, int, int)
15 RETURNS SETOF __pgest
16 AS 'pgest', 'pgest'
17 LANGUAGE C IMMUTABLE CALLED ON NULL INPUT;
18
19 CREATE OR REPLACE FUNCTION pgest2(text[])
20 RETURNS setof record
21 AS 'pgest','pgest2'
22 LANGUAGE 'C' IMMUTABLE STRICT;

  ViewVC Help
Powered by ViewVC 1.1.26