Community mailing list archives

community@mail.odoo.com

Re: Is it mandatory to use a reg expression for db_filter on odoo server configuration file ?

by
OpusVL, Nick Booker
- 07/24/2015 04:57:30
Yassine Teimi <yteimi01@gmail.com> writes:

> Dears, 
>
> Is it mandatory or I can use for example db_filter ="PROD" ? 
>
> Thanks.

I presume you would want the name PROD and only PROD to be matched in
that case.

If you use db_filter = "PROD" then it will match any database name with
the string PROD anywhere within.  It won't be able to tell that you meant an exact
match.

To match only databases whose whole name is PROD, you need:

db_filter = "^PROD$"