/[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 3 - (hide annotations)
Fri May 20 16:11:38 2005 UTC (18 years, 11 months ago) by dpavlin
File size: 471 byte(s)
added limit and offset

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 dpavlin 3 -- select * from pgest('/index/path/','query', limit, offset);
14     CREATE OR REPLACE FUNCTION pgest(text, text, int, int)
15 dpavlin 1 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