/[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 1 - (hide annotations)
Fri May 20 12:19:05 2005 UTC (18 years, 11 months ago) by dpavlin
File size: 460 byte(s)
initial import of API between Estraier and PostgreSQL

1 dpavlin 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', 'sort');
14     CREATE OR REPLACE FUNCTION pgest(text, text, text)
15     RETURNS SETOF __pgest
16     AS 'pgest', 'pgest'
17     LANGUAGE C IMMUTABLE STRICT;
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