Обсуждение: duplicated index entry found ...

Поиск
Список
Период
Сортировка

duplicated index entry found ...

От
The Hermit Hacker
Дата:
Non-critical, but figured I'd mention it ... this was from the beta build
this evening ...

/usr/local/bin/perl /usr/local/share/sgml/docbook/dsssl/modular/bin/collateindex.pl -f -g -i 'bookindex' -o
bookindex.sgmlHTML.index 
Processing HTML.index...
568 entries loaded...
duplicated index entry found, CHARACTER STRINGS LENGTH
duplicated index entry found, LENGTH CHARACTER STRINGS
duplicated index entry found, SUBSTRING
duplicated index entry found, SUBSTRING
4 entries ignored...
Done.



Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org

Re: duplicated index entry found ...

От
Tom Lane
Дата:
The Hermit Hacker <scrappy@postgresql.org> writes:
> duplicated index entry found, CHARACTER STRINGS LENGTH
> duplicated index entry found, LENGTH CHARACTER STRINGS
> duplicated index entry found, SUBSTRING
> duplicated index entry found, SUBSTRING
> 4 entries ignored...

Yeah, I've been seeing that for quite some time, but haven't been able
to figure out what it's complaining about.  Surely multiple index
entries for the same term are legal, so what's its beef?

            regards, tom lane

Re: duplicated index entry found ...

От
Peter Eisentraut
Дата:
Tom Lane writes:

> The Hermit Hacker <scrappy@postgresql.org> writes:
> > duplicated index entry found, CHARACTER STRINGS LENGTH
> > duplicated index entry found, LENGTH CHARACTER STRINGS
> > duplicated index entry found, SUBSTRING
> > duplicated index entry found, SUBSTRING
> > 4 entries ignored...
>
> Yeah, I've been seeing that for quite some time, but haven't been able
> to figure out what it's complaining about.  Surely multiple index
> entries for the same term are legal, so what's its beef?

Since by default (which we don't override) an index entry points to its
nearest containing section (rather than directly to its occurence), if a
section contains the same index entry more than once, it does indeed look
like a duplicate on the outside.  There are at least two obvious ways to
get rid of the warnings, but I could never figure out the benefits and
drawbacks of them.

--
Peter Eisentraut   peter_e@gmx.net