Re: tsearch filenames unlikes special symbols and numbers - Mailing list pgsql-hackers

From Tom Lane
Subject Re: tsearch filenames unlikes special symbols and numbers
Date
Msg-id 18346.1189350640@sss.pgh.pa.us
Whole thread Raw
In response to Re: tsearch filenames unlikes special symbols and numbers  (Oleg Bartunov <oleg@sai.msu.su>)
List pgsql-hackers
Oleg Bartunov <oleg@sai.msu.su> writes:
> Oh, my god, I see we dictate extensions !
> Folk, this is too much ! Now, we dictate extensions '.dict, .affix, .stop',
> what else ?

> Does it defined by ispell template only, or it's global requirements ?

It's the callers of get_tsearch_config_filename() that specify the
extension, so AFAICS each dictionary can do what it wants.  I don't see
the problem with enforcing an extension: it keeps the namespaces for
different kinds of files separate, and it gets us out of the potential
security risk of allowing access to "." or "..".

I remain of the opinion that we don't really want the SQL-command
definitions of dictionaries to expose the fact that these are files at
all.  We should be thinking of the command parameters as identifiers.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: invalidly encoded strings
Next
From: Stefan Kaltenbrunner
Date:
Subject: pgcrypto related backend crash on solaris 10/x86_64