Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
29faadcd
Commit
29faadcd
authored
Nov 14, 2009
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make unaccent's install/uninstall scripts look more like all the others.
Set search_path explicitly, don't use IF EXISTS, etc.
parent
da8d684d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
contrib/unaccent/unaccent.sql.in
contrib/unaccent/unaccent.sql.in
+7
-6
contrib/unaccent/uninstall_unaccent.sql
contrib/unaccent/uninstall_unaccent.sql
+9
-7
No files found.
contrib/unaccent/unaccent.sql.in
View file @
29faadcd
/* $PostgreSQL: pgsql/contrib/unaccent/unaccent.sql.in,v 1.1 2009/08/18 10:34:39 teodor Exp $ */
/* $PostgreSQL: pgsql/contrib/unaccent/unaccent.sql.in,v 1.2 2009/11/14 18:24:32 tgl Exp $ */
-- Adjust this setting to control where the objects get created.
SET search_path = public;
CREATE OR REPLACE FUNCTION unaccent(regdictionary, text)
RETURNS text
AS 'MODULE_PATHNAME', 'unaccent_dict'
LANGUAGE C
RETURNS NULL ON NULL INPUT IMMUTABLE
;
LANGUAGE C
STRICT
;
CREATE OR REPLACE FUNCTION unaccent(text)
RETURNS text
AS 'MODULE_PATHNAME', 'unaccent_dict'
LANGUAGE C
RETURNS NULL ON NULL INPUT IMMUTABLE
;
LANGUAGE C
STRICT
;
CREATE OR REPLACE FUNCTION unaccent_init(internal)
RETURNS internal
...
...
@@ -21,13 +24,11 @@ CREATE OR REPLACE FUNCTION unaccent_lexize(internal,internal,internal,internal)
LANGUAGE C;
CREATE TEXT SEARCH TEMPLATE unaccent (
INIT = unaccent_init,
INIT = unaccent_init,
LEXIZE = unaccent_lexize
);
CREATE TEXT SEARCH DICTIONARY unaccent (
TEMPLATE = unaccent,
RULES = 'unaccent'
);
contrib/unaccent/uninstall_unaccent.sql
View file @
29faadcd
/* $PostgreSQL: pgsql/contrib/unaccent/uninstall_unaccent.sql,v 1.
1 2009/08/18 10:34:39 teodor
Exp $ */
/* $PostgreSQL: pgsql/contrib/unaccent/uninstall_unaccent.sql,v 1.
2 2009/11/14 18:24:32 tgl
Exp $ */
DROP
FUNCTION
IF
EXISTS
unaccent
(
regdictionary
,
text
)
CASCADE
;
DROP
FUNCTION
IF
EXISTS
unaccent
(
text
)
CASCADE
;
DROP
TEXT
SEARCH
DICTIONARY
IF
EXISTS
unaccent
CASCADE
;
DROP
TEXT
SEARCH
TEMPLATE
IF
EXISTS
unaccent
CASCADE
;
DROP
FUNCTION
IF
EXISTS
unaccent_init
(
internal
)
CASCADE
;
DROP
FUNCTION
IF
EXISTS
unaccent_lexize
(
internal
,
internal
,
internal
,
internal
)
CASCADE
;
-- Adjust this setting to control where the objects get dropped.
SET
search_path
=
public
;
DROP
FUNCTION
unaccent
(
regdictionary
,
text
);
DROP
FUNCTION
unaccent
(
text
);
DROP
TEXT
SEARCH
DICTIONARY
unaccent
;
DROP
TEXT
SEARCH
TEMPLATE
unaccent
;
DROP
FUNCTION
unaccent_init
(
internal
);
DROP
FUNCTION
unaccent_lexize
(
internal
,
internal
,
internal
,
internal
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment