aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/variable.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-06-17 15:16:09 +0000
committerBruce Momjian <bruce@momjian.us>1999-06-17 15:16:09 +0000
commit4c6538259659b6325da5205005846162c78fd593 (patch)
tree2acae522c457c5c124fce867758b29752309a989 /src/backend/commands/variable.c
parent0c1ec674474a317c8f90a114db4111f48cc76223 (diff)
downloadpostgresql-4c6538259659b6325da5205005846162c78fd593.tar.gz
postgresql-4c6538259659b6325da5205005846162c78fd593.zip
Remove QUERY_LIMIT and documenation on same. Change _ALIGN to TYPEALIGN
for Irix.
Diffstat (limited to 'src/backend/commands/variable.c')
-rw-r--r--src/backend/commands/variable.c66
1 files changed, 2 insertions, 64 deletions
diff --git a/src/backend/commands/variable.c b/src/backend/commands/variable.c
index f1462423071..5b914046562 100644
--- a/src/backend/commands/variable.c
+++ b/src/backend/commands/variable.c
@@ -2,7 +2,7 @@
* Routines for handling of 'SET var TO',
* 'SHOW var' and 'RESET var' statements.
*
- * $Id: variable.c,v 1.20 1999/05/25 16:08:28 momjian Exp $
+ * $Id: variable.c,v 1.21 1999/06/17 15:15:48 momjian Exp $
*
*/
@@ -16,14 +16,10 @@
#include "utils/builtins.h"
#include "optimizer/internal.h"
#include "access/xact.h"
+#include "utils/tqual.h"
#ifdef MULTIBYTE
#include "mb/pg_wchar.h"
#endif
-#ifdef QUERY_LIMIT
-#include "executor/executor.h"
-#include "executor/execdefs.h"
-#endif
-
static bool show_date(void);
static bool reset_date(void);
static bool parse_date(const char *);
@@ -46,13 +42,6 @@ static bool show_XactIsoLevel(void);
static bool reset_XactIsoLevel(void);
static bool parse_XactIsoLevel(const char *);
-#ifdef QUERY_LIMIT
-static bool show_query_limit(void);
-static bool reset_query_limit(void);
-static bool parse_query_limit(const char *);
-
-#endif
-
extern Cost _cpu_page_wight_;
extern Cost _cpu_index_page_wight_;
extern bool _use_geqo_;
@@ -538,52 +527,6 @@ reset_timezone()
return TRUE;
} /* reset_timezone() */
-/*
- *
- * Query_limit
- *
- */
-#ifdef QUERY_LIMIT
-static bool
-parse_query_limit(const char *value)
-{
- int32 limit;
-
- if (value == NULL)
- {
- reset_query_limit();
- return (TRUE);
- }
- /* why is pg_atoi's arg not declared "const char *" ? */
- limit = pg_atoi((char *) value, sizeof(int32), '\0');
- if (limit <= -1)
- elog(ERROR, "Bad value for # of query limit (%s)", value);
- ExecutorLimit(limit);
- return (TRUE);
-}
-
-static bool
-show_query_limit(void)
-{
- int limit;
-
- limit = ExecutorGetLimit();
- if (limit == ALL_TUPLES)
- elog(NOTICE, "No query limit is set");
- else
- elog(NOTICE, "query limit is %d", limit);
- return (TRUE);
-}
-
-static bool
-reset_query_limit(void)
-{
- ExecutorLimit(ALL_TUPLES);
- return (TRUE);
-}
-
-#endif
-
/*-----------------------------------------------------------------------*/
struct VariableParsers
@@ -624,11 +567,6 @@ struct VariableParsers
{
"XactIsoLevel", parse_XactIsoLevel, show_XactIsoLevel, reset_XactIsoLevel
},
-#ifdef QUERY_LIMIT
- {
- "query_limit", parse_query_limit, show_query_limit, reset_query_limit
- },
-#endif
{
NULL, NULL, NULL, NULL
}