/[pgswish]/trunk/pgswish.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/pgswish.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14 - (show annotations)
Sat Feb 19 20:59:17 2005 UTC (19 years, 2 months ago) by dpavlin
File size: 566 byte(s)
cleanup log levels, a try to implement properties as another function (won't work)

1 drop type __pgswish cascade;
2
3 CREATE TYPE __pgswish AS (
4 rank integer,
5 path text,
6 headline text,
7 size integer
8 );
9
10 -- Search swish-e index as table
11 -- select * from pgswish('/index/path/','query', 'sort');
12 CREATE OR REPLACE FUNCTION pgswish(text, text, text)
13 RETURNS SETOF __pgswish
14 AS 'pgswish', 'pgswish'
15 LANGUAGE C IMMUTABLE STRICT;
16
17 -- get property value while retriving results with pgswish
18 -- select *,pgtextprop('property') from pgswish(...) ...
19
20 CREATE OR REPLACE FUNCTION swtextprop(text)
21 RETURNS text
22 AS 'pgswish', 'swtextprop'
23 LANGUAGE C STRICT;

  ViewVC Help
Powered by ViewVC 1.1.26