On Thu, Feb 24, 2011 at 12:47:16PM -0600, Stan Hoeppner wrote:

> >> ~# postconf -d|grep default_database_type
> >>
> >> If that command returns "default_database_type = hash" then yes, you
> >> should postmap the file.
> > 
> > Not "postconf -d", just "postconf". The default database type should
> > be an indexed database that requires postmap.
> 
> Hmm.  I didn't know it made a difference here.  Why is it preferred
> without the -d switch Viktor?  On Debian Lenny I get identical output.
> 
> ~$ postconf -d|wc -l
> 643
> ~$ postconf|wc -l
> 643

Because "-d" returns compiled-in defaults, while "postconf"
returns the actual settings after any main.cf overrides. The value of
"default_database_type" has a compiled-in default, but it can be changed
in main.cf. I always set it to "cdb", since this is optimal for read-only
indexed lookup files.

The number of lines returned is immaterial, the content is what counts.

-- 
        Viktor.

Reply via email to