From 8c85a34a3b945059e1bc03e2f0988b8092a365fd Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 29 Mar 2005 03:01:32 +0000 Subject: Officially decouple FUNC_MAX_ARGS from INDEX_MAX_KEYS, and set the former to 100 by default. Clean up some of the less necessary dependencies on FUNC_MAX_ARGS; however, the biggie (FunctionCallInfoData) remains. --- src/backend/access/transam/xlog.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/backend/access/transam/xlog.c') diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 6bc5b78780c..2d05f6b2777 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.182 2005/03/24 04:36:17 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.183 2005/03/29 03:01:30 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -3120,7 +3120,7 @@ WriteControlFile(void) ControlFile->xlog_seg_size = XLOG_SEG_SIZE; ControlFile->nameDataLen = NAMEDATALEN; - ControlFile->funcMaxArgs = FUNC_MAX_ARGS; + ControlFile->indexMaxKeys = INDEX_MAX_KEYS; #ifdef HAVE_INT64_TIMESTAMP ControlFile->enableIntTimes = TRUE; @@ -3285,12 +3285,12 @@ ReadControlFile(void) " but the server was compiled with NAMEDATALEN %d.", ControlFile->nameDataLen, NAMEDATALEN), errhint("It looks like you need to recompile or initdb."))); - if (ControlFile->funcMaxArgs != FUNC_MAX_ARGS) + if (ControlFile->indexMaxKeys != INDEX_MAX_KEYS) ereport(FATAL, (errmsg("database files are incompatible with server"), - errdetail("The database cluster was initialized with FUNC_MAX_ARGS %d," - " but the server was compiled with FUNC_MAX_ARGS %d.", - ControlFile->funcMaxArgs, FUNC_MAX_ARGS), + errdetail("The database cluster was initialized with INDEX_MAX_KEYS %d," + " but the server was compiled with INDEX_MAX_KEYS %d.", + ControlFile->indexMaxKeys, INDEX_MAX_KEYS), errhint("It looks like you need to recompile or initdb."))); #ifdef HAVE_INT64_TIMESTAMP -- cgit v1.2.3