|
| 1 | +create type si_dicts_result as (dict_name VARCHAR, affix_name VARCHAR, words INT, affixes INT, bytes INT); |
| 2 | +create function shared_ispell_dicts( OUT dict_name VARCHAR, OUT affix_name VARCHAR, OUT words INT, OUT affixes INT, OUT bytes INT) |
| 3 | +returns SETOF record as $$ |
| 4 | +declare |
| 5 | + qString varchar(4000); |
| 6 | + rec si_dicts_result; |
| 7 | +begin |
| 8 | + qString := 'select * from shared_ispell_dicts()'; |
| 9 | + for rec in execute qString loop |
| 10 | + return NEXT; |
| 11 | + end loop; |
| 12 | + return; |
| 13 | +end |
| 14 | +$$ language plpgsql; |
| 15 | +create extension shared_ispell; |
| 16 | +ERROR: function "shared_ispell_dicts" already exists with same argument types |
| 17 | +CONTEXT: SQL statement "CREATE FUNCTION shared_ispell_dicts( OUT dict_name VARCHAR, OUT affix_name VARCHAR, OUT words INT, OUT affixes INT, OUT bytes INT) |
| 18 | + RETURNS SETOF record |
| 19 | + AS '$libdir/shared_ispell', 'dispell_list_dicts' |
| 20 | + LANGUAGE C IMMUTABLE" |
| 21 | +extension script file "shared_ispell--1.1.0.sql", near line 26 |
| 22 | +drop extension if exists shared_ispell; |
| 23 | +NOTICE: extension "shared_ispell" does not exist, skipping |
| 24 | +drop type si_dicts_result; |
| 25 | +drop function shared_ispell_dicts(); |
| 26 | +create type si_stoplists_result as (stop_name VARCHAR, words INT, bytes INT); |
| 27 | +create function shared_ispell_stoplists(OUT stop_name VARCHAR, OUT words INT, OUT bytes INT) |
| 28 | +returns SETOF record as $$ |
| 29 | +declare |
| 30 | + rec si_stoplists_result; |
| 31 | + qString varchar(4000); |
| 32 | +begin |
| 33 | + qString := 'select * from shared_ispell_stoplists()'; |
| 34 | + for rec in execute qString loop |
| 35 | + return NEXT; |
| 36 | + end loop; |
| 37 | + return; |
| 38 | +end |
| 39 | +$$ language plpgsql; |
| 40 | +create extension shared_ispell; |
| 41 | +ERROR: function "shared_ispell_stoplists" already exists with same argument types |
| 42 | +CONTEXT: SQL statement "CREATE FUNCTION shared_ispell_stoplists( OUT stop_name VARCHAR, OUT words INT, OUT bytes INT) |
| 43 | + RETURNS SETOF record |
| 44 | + AS '$libdir/shared_ispell', 'dispell_list_stoplists' |
| 45 | + LANGUAGE C IMMUTABLE" |
| 46 | +extension script file "shared_ispell--1.1.0.sql", near line 31 |
| 47 | +drop extension if exists shared_ispell; |
| 48 | +NOTICE: extension "shared_ispell" does not exist, skipping |
| 49 | +drop type si_stoplists_result; |
| 50 | +drop function shared_ispell_stoplists(); |