mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +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_int/dict_int.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 dintdict_init(internal)
|
||||
CREATE OR REPLACE FUNCTION dintdict_init(internal)
|
||||
RETURNS internal
|
||||
AS 'MODULE_PATHNAME'
|
||||
LANGUAGE C STRICT;
|
||||
|
||||
CREATE FUNCTION dintdict_lexize(internal, internal, internal, internal)
|
||||
CREATE OR REPLACE FUNCTION dintdict_lexize(internal, internal, internal, internal)
|
||||
RETURNS internal
|
||||
AS 'MODULE_PATHNAME'
|
||||
LANGUAGE C STRICT;
|
||||
@ -25,5 +21,3 @@ CREATE TEXT SEARCH DICTIONARY intdict (
|
||||
);
|
||||
|
||||
COMMENT ON TEXT SEARCH DICTIONARY intdict IS 'dictionary for integers';
|
||||
|
||||
END;
|
||||
|
@ -1,3 +1,4 @@
|
||||
-- Adjust this setting to control where the objects get dropped.
|
||||
SET search_path = public;
|
||||
|
||||
DROP TEXT SEARCH DICTIONARY intdict;
|
||||
|
Reference in New Issue
Block a user