mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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.
This commit is contained 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;
|
||||
|
@ -1,3 +1,4 @@
|
||||
-- Adjust this setting to control where the objects get dropped.
|
||||
SET search_path = public;
|
||||
|
||||
DROP TEXT SEARCH DICTIONARY xsyn;
|
||||
|
Reference in New Issue
Block a user