- Bug 352 :: Issues with PostgreSQL "head" (what shall become 9.5 or so). It is pretty usual for #include files to shift a bit and for functions to change arguments a bit.
- Bug 349 :: Issue with quoting of cluster name - only hit when processing DDL
+ - Bug 359 :: Additional parameter to GetConfigOptionByName() in HEAD
+
AC_MSG_RESULT([yes, and it takes $ac_cv_ScanKeywordLookup_args arguments])
fi
+AC_MSG_CHECKING(for GetConfigOptionByName)
+if test -z "$ac_cv_GetConfigOptionByName_args"; then
+ AC_TRY_COMPILE(
+ [#include "postgres.h"
+ #include "utils/guc.h"],
+ [GetConfigOptionByName(NULL, NULL); ],
+ ac_cv_GetConfigOptionByName_args=2)
+fi
+if test -z "$ac_cv_GetConfigOptionByName_args"; then
+ AC_TRY_COMPILE(
+ [#include "postgres.h"
+ #include "utils/guc.h"],
+ [GetConfigOptionByName(NULL, NULL, NULL); ],
+ ac_cv_GetConfigOptionByName_args=3)
+fi
+
+AC_MSG_CHECKING(for GetConfigOptionByName)
+if test -z "$ac_cv_GetConfigOptionByName_args"; then
+ AC_MSG_RESULT(no)
+else
+ if test "$ac_cv_GetConfigOptionByName_args" = 2; then
+ AC_DEFINE(GETCONFIGOPTIONBYNAME_2)
+ elif test "$ac_cv_GetConfigOptionByName_args" = 3; then
+ AC_DEFINE(GETCONFIGOPTIONBYNAME_3)
+ fi
+ AC_MSG_RESULT([yes, and it takes $ac_cv_GetConfigOptionByName_args arguments])
+fi
+
AC_MSG_CHECKING(for set_config_option)
if test -z "$ac_cv_set_config_option_args"; then
AC_TRY_COMPILE(
/*
* Save the current datestyle setting and switch to ISO (if not already)
*/
+#ifdef GETCONFIGOPTIONBYNAME_2
olddatestyle = GetConfigOptionByName("DateStyle", NULL);
+#elif defined (GETCONFIGOPTIONBYNAME_3)
+ olddatestyle = GetConfigOptionByName("DateStyle", NULL, false);
+#endif
if (!strstr(olddatestyle, "ISO"))
{
#ifdef SETCONFIGOPTION_6