diff options
| author | Bruce Momjian | 2007-11-11 03:25:35 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2007-11-11 03:25:35 +0000 |
| commit | 926bbab44832ae2763392077ecefa029d14c8544 (patch) | |
| tree | e70fd1806e8a04b019808e1c71428568eb900f8c /contrib/dict_xsyn | |
| parent | 541ff409cc341ce1e0212fc6a7d67eef6709b6b4 (diff) | |
Make /contrib install/uninstall script consistent:
remove transactions
use create or replace function
make formatting consistent
set search patch on first line
Add documentation on modifying *.sql to set the search patch, and
mention that major upgrades should still run the installation scripts.
Some of these issues were spotted by Tom today.
Diffstat (limited to 'contrib/dict_xsyn')
| -rw-r--r-- | contrib/dict_xsyn/dict_xsyn.sql.in | 10 | ||||
| -rw-r--r-- | contrib/dict_xsyn/uninstall_dict_xsyn.sql | 1 |
2 files changed, 3 insertions, 8 deletions
diff --git a/contrib/dict_xsyn/dict_xsyn.sql.in b/contrib/dict_xsyn/dict_xsyn.sql.in index 0e5755e5b17..bae5224a24a 100644 --- a/contrib/dict_xsyn/dict_xsyn.sql.in +++ b/contrib/dict_xsyn/dict_xsyn.sql.in @@ -1,16 +1,12 @@ --- $PostgreSQL: pgsql/contrib/dict_xsyn/dict_xsyn.sql.in,v 1.1 2007/10/15 21:36:50 tgl Exp $ - -- Adjust this setting to control where the objects get created. SET search_path = public; -BEGIN; - -CREATE FUNCTION dxsyn_init(internal) +CREATE OR REPLACE FUNCTION dxsyn_init(internal) RETURNS internal AS 'MODULE_PATHNAME' LANGUAGE C STRICT; -CREATE FUNCTION dxsyn_lexize(internal, internal, internal, internal) +CREATE OR REPLACE FUNCTION dxsyn_lexize(internal, internal, internal, internal) RETURNS internal AS 'MODULE_PATHNAME' LANGUAGE C STRICT; @@ -25,5 +21,3 @@ CREATE TEXT SEARCH DICTIONARY xsyn ( ); COMMENT ON TEXT SEARCH DICTIONARY xsyn IS 'eXtended synonym dictionary'; - -END; diff --git a/contrib/dict_xsyn/uninstall_dict_xsyn.sql b/contrib/dict_xsyn/uninstall_dict_xsyn.sql index 7b7acea0d14..45c28e820a7 100644 --- a/contrib/dict_xsyn/uninstall_dict_xsyn.sql +++ b/contrib/dict_xsyn/uninstall_dict_xsyn.sql @@ -1,3 +1,4 @@ +-- Adjust this setting to control where the objects get dropped. SET search_path = public; DROP TEXT SEARCH DICTIONARY xsyn; |
