Based on this report, I am adding a FUNC_MAX_ARGS define to
src/include/pg_config.h.win32.  Certainly if we have INDEX_MAX_KEYS in
there, we should have FUNC_MAX_ARGS too.

---------------------------------------------------------------------------

Chris Ryan wrote:
> Bruce,
> 
> 	I'm not active on the pgsql lists so I figured I would pass this on to
> you.
> 
> 	We were working on compiling some apps using the libpq interface on
> windows and ran into a problem where FUNC_MAX_ARGS was not defined in
> the src/include/pg_config.h.win32 file. We added the following line to
> the file:
> 
> #define FUNC_MAX_ARGS INDEX_MAX_KEYS
> 
> 	After an nmake -f win32.mak cleanl; nmake -f win32.mak everything
> worked fine.
> 
> Thanks in advance.
> Chris
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Index: src/include/pg_config.h.win32
===================================================================
RCS file: /cvsroot/pgsql/src/include/pg_config.h.win32,v
retrieving revision 1.3
diff -c -r1.3 pg_config.h.win32
*** src/include/pg_config.h.win32	22 Jan 2002 19:02:40 -0000	1.3
--- src/include/pg_config.h.win32	23 Apr 2002 23:42:59 -0000
***************
*** 19,24 ****
--- 19,25 ----
  #define BLCKSZ	8192
  
  #define INDEX_MAX_KEYS		16
+ #define FUNC_MAX_ARGS		INDEX_MAX_KEYS
  
  #define HAVE_ATEXIT
  #define HAVE_MEMMOVE
Tue, 23 Apr 2002 19:46:10 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: ?Missing '#define FUNC_MAX_ARGS' in pg_config.h.win32?
Bruce Momjian writes:

> Based on this report, I am adding a FUNC_MAX_ARGS define to
> src/include/pg_config.h.win32.  Certainly if we have INDEX_MAX_KEYS in
> there, we should have FUNC_MAX_ARGS too.

We probably shouldn't have either one in there.

-- 
Peter Eisentraut   peter_e@gmx.net


Tue, 23 Apr 2002 20:24:47 -0400 (EDT)
Peter Eisentraut <peter_e@gmx.net>
Re: ?Missing '#define FUNC_MAX_ARGS' in pg_config.h.win32?
Peter Eisentraut wrote:
> Bruce Momjian writes:
> 
> > Based on this report, I am adding a FUNC_MAX_ARGS define to
> > src/include/pg_config.h.win32.  Certainly if we have INDEX_MAX_KEYS in
> > there, we should have FUNC_MAX_ARGS too.
> 
> We probably shouldn't have either one in there.

I thought so too, but the reporter complained something didn't compile
without it.  What should we do?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Tue, 23 Apr 2002 20:57:35 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: ?Missing '#define FUNC_MAX_ARGS' in pg_config.h.win32?
Bruce Momjian writes:

> Peter Eisentraut wrote:
> > Bruce Momjian writes:
> >
> > > Based on this report, I am adding a FUNC_MAX_ARGS define to
> > > src/include/pg_config.h.win32.  Certainly if we have INDEX_MAX_KEYS in
> > > there, we should have FUNC_MAX_ARGS too.
> >
> > We probably shouldn't have either one in there.
>
> I thought so too, but the reporter complained something didn't compile
> without it.  What should we do?

I'm working right now on removing traces of FUNC_MAX_ARGS, INDEX_MAX_KEYS,
and NAMEDATALEN from frontend code (pg_dump and psql).  When I'm done I
will remove the definition from pg_config.h.win32.

-- 
Peter Eisentraut   peter_e@gmx.net


Tue, 23 Apr 2002 21:10:20 -0400 (EDT)
Peter Eisentraut <peter_e@gmx.net>
Re: ?Missing '#define FUNC_MAX_ARGS' in pg_config.h.win32?