Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 11fee4e

Browse filesBrowse files
committed
Suppress testing the options of CREATE TEXT SEARCH DICTIONARY during
initdb. We should create all the standard dictionaries even though some of them may not work in template1's encoding. Per Teodor.
1 parent fefe703 commit 11fee4e
Copy full SHA for 11fee4e

File tree

Expand file treeCollapse file tree

1 file changed

+12
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-1
lines changed
Open diff view settings
Collapse file

‎src/backend/commands/tsearchcmds.c‎

Copy file name to clipboardExpand all lines: src/backend/commands/tsearchcmds.c
+12-1Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/commands/tsearchcmds.c,v 1.4 2007/08/22 05:13:50 tgl Exp $
12+
* $PostgreSQL: pgsql/src/backend/commands/tsearchcmds.c,v 1.5 2007/08/22 22:30:20 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -418,6 +418,17 @@ verify_dictoptions(Oid tmplId, List *dictoptions)
418418
Form_pg_ts_template tform;
419419
Oid initmethod;
420420

421+
/*
422+
* Suppress this test when running in a standalone backend. This is a
423+
* hack to allow initdb to create prefab dictionaries that might not
424+
* actually be usable in template1's encoding (due to using external
425+
* files that can't be translated into template1's encoding). We want
426+
* to create them anyway, since they might be usable later in other
427+
* databases.
428+
*/
429+
if (!IsUnderPostmaster)
430+
return;
431+
421432
tup = SearchSysCache(TSTEMPLATEOID,
422433
ObjectIdGetDatum(tmplId),
423434
0, 0, 0);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.