Thread: Can't find compile-time options

Can't find compile-time options

From
"Josh Berkus"
Date:
Folks,

I'm trying to do a custom compile of Postgresql and I can't find the
compile-time options file.  It's named something obscure and the name of
the file isn't in the online documentation anywhere.  

Can we please, please, please add this to the online docs?

-Josh Berkus

______AGLIO DATABASE SOLUTIONS___________________________                                      Josh Berkus Complete
informationtechnology      josh@agliodbs.com  and data management solutions       (415) 565-7293 for law firms, small
businesses       fax 621-2533   and non-profit organizations.      San Francisco
 


Re: Can't find compile-time options

From
Peter Eisentraut
Date:
Josh Berkus writes:

> I'm trying to do a custom compile of Postgresql and I can't find the
> compile-time options file.  It's named something obscure and the name of
> the file isn't in the online documentation anywhere.

Perhaps you mean src/include/pg_config.h?

> Can we please, please, please add this to the online docs?

I'd rather get rid of the file than announce it to the world...

-- 
Peter Eisentraut   peter_e@gmx.net



Re: Can't find compile-time options

From
Tom Lane
Date:
"Josh Berkus" <josh@agliodbs.com> writes:
> I'm trying to do a custom compile of Postgresql and I can't find the
> compile-time options file.  It's named something obscure and the name of
> the file isn't in the online documentation anywhere.  

> Can we please, please, please add this to the online docs?

I think that Peter probably deliberately removed all reference to it
from the docs ;-).  In src/Makefile.global.in I find:

# This includes your local customizations if Makefile.custom exists
# in the source directory.  This file doesn't exist in the original
# distribution so that it doesn't get overwritten when you upgrade.
#
# NOTE:  Makefile.custom is from the pre-Autoconf days of PostgreSQL.
# You are liable to shoot yourself in the foot if you use it without
# knowing exactly what you're doing.  The preferred (and more
# reliable) method is to communicate what you want to do to the
# configure script, and leave the makefiles alone.

-include $(top_srcdir)/src/Makefile.custom
        regards, tom lane


Re: Can't find compile-time options

From
"Josh Berkus"
Date:
Peter,

> Perhaps you mean src/include/pg_config.h?
> 

Yes, thanks.  Bruce e-mailed me privately, too.

> > Can we please, please, please add this to the online docs?
> 
> I'd rather get rid of the file than announce it to the world...

Then how am I going to compile Postgres to support 64 function
parameters?  --with--maxargs is NOT a ./configure option.

-Josh


______AGLIO DATABASE SOLUTIONS___________________________                                      Josh Berkus Complete
informationtechnology      josh@agliodbs.com  and data management solutions       (415) 565-7293 for law firms, small
businesses       fax 621-2533   and non-profit organizations.      San Francisco