CREATE FUNCTION

Started by Carmen Waiover 23 years ago5 messagesgeneral
Jump to latest
#1Carmen Wai
wai_carmen@hotmail.com

Hello:

I found that when I use CREATE FUNCTION in postgresql, the maximum number of
arguments is 16 only. How I config so that the CREATE FUNCTION allows
unlimited number of arguments?

Thanks a lot!
Carmen

_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail.
http://www.hotmail.com

#2Neil Conway
neilc@samurai.com
In reply to: Carmen Wai (#1)
Re: CREATE FUNCTION

"Carmen Wai" <wai_carmen@hotmail.com> writes:

I found that when I use CREATE FUNCTION in postgresql, the maximum
number of arguments is 16 only. How I config so that the CREATE
FUNCTION allows unlimited number of arguments?

Change FUNC_MAX_ARGS in src/include/pg_config.h, 'make clean',
recompile, re-install, and re-initdb.

Cheers,

Neil

--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC

#3Richard Huxton
dev@archonet.com
In reply to: Carmen Wai (#1)
Re: CREATE FUNCTION

On Wednesday 07 Aug 2002 4:41 pm, Carmen Wai wrote:

Hello:

I found that when I use CREATE FUNCTION in postgresql, the maximum number
of arguments is 16 only. How I config so that the CREATE FUNCTION allows
unlimited number of arguments?

Check the mailing archives - there's a constant in pg_config.h you'll need to
increase and then recompile. Don't forget to dump your database first for
backup.

- Richard Huxton

#4Gregory Seidman
gss+pg@cs.brown.edu
In reply to: Neil Conway (#2)
Re: CREATE FUNCTION

Neil Conway sez:
} "Carmen Wai" <wai_carmen@hotmail.com> writes:
} > I found that when I use CREATE FUNCTION in postgresql, the maximum
} > number of arguments is 16 only. How I config so that the CREATE
} > FUNCTION allows unlimited number of arguments?
}
} Change FUNC_MAX_ARGS in src/include/pg_config.h, 'make clean',
} recompile, re-install, and re-initdb.

Is the initdb really necessary? Will the modified postmaster not work on
the existing data directory?

} Cheers,
} Neil
--Greg

#5Tom Lane
tgl@sss.pgh.pa.us
In reply to: Gregory Seidman (#4)
Re: CREATE FUNCTION

Gregory Seidman <gss+pg@cs.brown.edu> writes:

Neil Conway sez:
} Change FUNC_MAX_ARGS in src/include/pg_config.h, 'make clean',
} recompile, re-install, and re-initdb.

Is the initdb really necessary?

Yes.

regards, tom lane