mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
298e077bc4
that return INTERNAL without also having INTERNAL arguments. Since the functions in question aren't meant to be called by hand anyway, I just redeclared them to take 'internal' instead of 'text'. Also add code to ProcedureCreate() to enforce the restriction, as I should have done to start with :-(
27 lines
744 B
Plaintext
27 lines
744 B
Plaintext
SET search_path = public;
|
|
BEGIN;
|
|
|
|
HASINIT create function dinit_CFG_MODNAME(internal)
|
|
HASINIT returns internal
|
|
HASINIT as 'MODULE_PATHNAME'
|
|
HASINIT language 'C';
|
|
|
|
NOSNOWBALL create function dlexize_CFG_MODNAME(internal,internal,int4)
|
|
NOSNOWBALL returns internal
|
|
NOSNOWBALL as 'MODULE_PATHNAME'
|
|
NOSNOWBALL language 'C'
|
|
NOSNOWBALL with (isstrict);
|
|
|
|
insert into pg_ts_dict select
|
|
'CFG_MODNAME',
|
|
HASINIT (select oid from pg_proc where proname='dinit_CFG_MODNAME'),
|
|
NOINIT null,
|
|
null,
|
|
ISSNOWBALL (select oid from pg_proc where proname='snb_lexize'),
|
|
NOSNOWBALL (select oid from pg_proc where proname='dlexize_CFG_MODNAME'),
|
|
CFG_COMMENT
|
|
;
|
|
|
|
|
|
END;
|