Re: Crash with empty dictionary - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Crash with empty dictionary
Date
Msg-id 2336.1187760320@sss.pgh.pa.us
Whole thread Raw
In response to Crash with empty dictionary  (Heikki Linnakangas <heikki@enterprisedb.com>)
Responses Re: Crash with empty dictionary  ("Hamid Quddus Akhtar" <hamid.akhtar@enterprisedb.com>)
List pgsql-hackers
Heikki Linnakangas <heikki@enterprisedb.com> writes:
> I'm not sure if this is a sane way to set up a dictionary, but surely
> seg faulting is not the right thing to do. Should we throw an error on
> an empty dict file, or should we swallow it without crashing?

Offhand I'd say that an empty file is a legitimate corner case,
so we should just take it silently.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: Is ALTER TEXT SEARCH CONFIGURATION PARSER = new_parser really sane?
Next
From: Tom Lane
Date:
Subject: Re: tsearch2 patch status report