|
9 | 9 | *
|
10 | 10 | *
|
11 | 11 | * IDENTIFICATION
|
12 |
| - * $PostgreSQL: pgsql/src/backend/commands/tsearchcmds.c,v 1.4 2007/08/2205:13:50 tgl Exp $ |
| 12 | + * $PostgreSQL: pgsql/src/backend/commands/tsearchcmds.c,v 1.5 2007/08/2222:30:20 tgl Exp $ |
13 | 13 | *
|
14 | 14 | *-------------------------------------------------------------------------
|
15 | 15 | */
|
@@ -418,6 +418,17 @@ verify_dictoptions(Oid tmplId, List *dictoptions)
|
418 | 418 | Form_pg_ts_templatetform;
|
419 | 419 | Oidinitmethod;
|
420 | 420 |
|
| 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 | + |
421 | 432 | tup=SearchSysCache(TSTEMPLATEOID,
|
422 | 433 | ObjectIdGetDatum(tmplId),
|
423 | 434 | 0,0,0);
|
|