Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f00d75b

Browse files
committed
Add snb_ru_init(internal) to list of stub functions in tsearch2
compatibility module. Needed to support loading of 8.1-era tsearch2 configuration data.
1 parent 224f91f commit f00d75b

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

contrib/tsearch2/tsearch2.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/contrib/tsearch2/tsearch2.c,v 1.3 2007/11/15 21:14:31 momjian Exp $
10+
* $PostgreSQL: pgsql/contrib/tsearch2/tsearch2.c,v 1.4 2007/11/16 00:34:54 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -122,6 +122,7 @@ UNSUPPORTED_FUNCTION(tsa_snb_en_init);
122122
UNSUPPORTED_FUNCTION(tsa_snb_lexize);
123123
UNSUPPORTED_FUNCTION(tsa_snb_ru_init_koi8);
124124
UNSUPPORTED_FUNCTION(tsa_snb_ru_init_utf8);
125+
UNSUPPORTED_FUNCTION(tsa_snb_ru_init);
125126

126127
UNSUPPORTED_FUNCTION(tsa_spell_init);
127128
UNSUPPORTED_FUNCTION(tsa_spell_lexize);

contrib/tsearch2/tsearch2.sql.in

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/contrib/tsearch2/tsearch2.sql.in,v 1.2 2007/11/13 22:14:50 tgl Exp $ */
1+
/* $PostgreSQL: pgsql/contrib/tsearch2/tsearch2.sql.in,v 1.3 2007/11/16 00:34:54 tgl Exp $ */
22

33
-- Adjust this setting to control where the objects get created.
44
SET search_path = public;
@@ -74,6 +74,11 @@ CREATE FUNCTION snb_ru_init_utf8(internal)
7474
as 'MODULE_PATHNAME', 'tsa_snb_ru_init_utf8'
7575
LANGUAGE C;
7676

77+
CREATE FUNCTION snb_ru_init(internal)
78+
RETURNS internal
79+
as 'MODULE_PATHNAME', 'tsa_snb_ru_init'
80+
LANGUAGE C;
81+
7782
CREATE FUNCTION spell_init(internal)
7883
RETURNS internal
7984
as 'MODULE_PATHNAME', 'tsa_spell_init'

contrib/tsearch2/uninstall_tsearch2.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/contrib/tsearch2/uninstall_tsearch2.sql,v 1.1 2007/11/13 21:02:29 tgl Exp $ */
1+
/* $PostgreSQL: pgsql/contrib/tsearch2/uninstall_tsearch2.sql,v 1.2 2007/11/16 00:34:54 tgl Exp $ */
22

33
-- Adjust this setting to control where the objects get dropped.
44
SET search_path = public, pg_catalog;
@@ -34,6 +34,7 @@ DROP FUNCTION snb_en_init(internal);
3434
DROP FUNCTION snb_lexize(internal,internal,int4);
3535
DROP FUNCTION snb_ru_init_koi8(internal);
3636
DROP FUNCTION snb_ru_init_utf8(internal);
37+
DROP FUNCTION snb_ru_init(internal);
3738
DROP FUNCTION spell_init(internal);
3839
DROP FUNCTION spell_lexize(internal,internal,int4);
3940
DROP FUNCTION syn_init(internal);

0 commit comments

Comments
 (0)