Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
4c653825
Commit
4c653825
authored
Jun 17, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove QUERY_LIMIT and documenation on same. Change _ALIGN to TYPEALIGN
for Irix.
parent
0c1ec674
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
18 additions
and
163 deletions
+18
-163
doc/src/sgml/libpq++.sgml
doc/src/sgml/libpq++.sgml
+0
-6
doc/src/sgml/libpq.sgml
doc/src/sgml/libpq.sgml
+0
-6
doc/src/sgml/ref/set.sgml
doc/src/sgml/ref/set.sgml
+0
-37
src/backend/commands/variable.c
src/backend/commands/variable.c
+2
-64
src/backend/executor/execMain.c
src/backend/executor/execMain.c
+1
-21
src/bin/psql/psqlHelp.h
src/bin/psql/psqlHelp.h
+3
-4
src/include/executor/executor.h
src/include/executor/executor.h
+1
-7
src/include/utils/memutils.h
src/include/utils/memutils.h
+8
-8
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-connect.c
+1
-4
src/man/set.l
src/man/set.l
+1
-5
src/template/linux_ppc
src/template/linux_ppc
+1
-1
No files found.
doc/src/sgml/libpq++.sgml
View file @
4c653825
...
...
@@ -182,12 +182,6 @@
sets the default cost for indexed searches for the optimizer.
</para>
</listitem>
<listitem>
<para>
<envar>PGQUERY_LIMIT</envar>
sets the maximum number of rows returned by a query.
</para>
</listitem>
</itemizedlist>
</para>
...
...
doc/src/sgml/libpq.sgml
View file @
4c653825
...
...
@@ -1521,12 +1521,6 @@ sets the default cost for heap searches for the optimizer.
sets the default cost for indexed searches for the optimizer.
</Para>
</ListItem>
<ListItem>
<Para>
<Acronym>PGQUERY_LIMIT</Acronym>
sets the maximum number of rows returned by a query.
</Para>
</ListItem>
</ItemizedList>
</Para>
...
...
doc/src/sgml/ref/set.sgml
View file @
4c653825
...
...
@@ -601,43 +601,6 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
</listitem>
</varlistentry>
<varlistentry>
<term>
QUERY_LIMIT
</term>
<listitem>
<para>
Sets the maximum number of rows returned by a query.
By default, there is no limit to the number of rows
returned by a query.
<variablelist>
<varlistentry>
<term>
<replaceable class="parameter">#</replaceable>
</term>
<listitem>
<para>
Sets the maximum number of rows returned by a
query to <replaceable class="parameter">#</replaceable>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
DEFAULT
</term>
<listitem>
<para>
Sets the maximum number of rows returned by a query to be unlimited.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect2>
...
...
src/backend/commands/variable.c
View file @
4c653825
...
...
@@ -2,7 +2,7 @@
* Routines for handling of 'SET var TO',
* 'SHOW var' and 'RESET var' statements.
*
* $Id: variable.c,v 1.2
0 1999/05/25 16:08:2
8 momjian Exp $
* $Id: variable.c,v 1.2
1 1999/06/17 15:15:4
8 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
}
...
...
src/backend/executor/execMain.c
View file @
4c653825
...
...
@@ -26,7 +26,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.8
7 1999/06/09 12:23:42 vadim
Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.8
8 1999/06/17 15:15:49 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -88,26 +88,6 @@ static TupleTableSlot *EvalPlanQualNext(EState *estate);
/* end of local decls */
#ifdef QUERY_LIMIT
static
int
queryLimit
=
ALL_TUPLES
;
#undef ALL_TUPLES
#define ALL_TUPLES queryLimit
int
ExecutorLimit
(
int
limit
)
{
return
queryLimit
=
limit
;
}
int
ExecutorGetLimit
()
{
return
queryLimit
;
}
#endif
/* ----------------------------------------------------------------
* ExecutorStart
*
...
...
src/bin/psql/psqlHelp.h
View file @
4c653825
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: psqlHelp.h,v 1.7
0 1999/06/04 04:28:53
momjian Exp $
* $Id: psqlHelp.h,v 1.7
1 1999/06/17 15:15:51
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -296,7 +296,7 @@ static struct _helpStruct QL_HELP[] = {
{
"reset"
,
"set run-time environment back to default"
,
"\
\t
RESET DATESTYLE|COST_HEAP|COST_INDEX|GEQO|KSQO|
QUERY_LIMIT|
\n
\
\t
RESET DATESTYLE|COST_HEAP|COST_INDEX|GEQO|KSQO|
\n
\
TIMEZONE|XACTISOLEVEL|CLIENT_ENCODING|SERVER_ENCODING"
},
{
"revoke"
,
"revoke access control from a user or group"
,
...
...
@@ -329,7 +329,6 @@ TIMEZONE|XACTISOLEVEL|CLIENT_ENCODING|SERVER_ENCODING"},
\t
SET COST_INDEX TO #
\n
\
\t
SET GEQO TO 'ON[=#]'|'OFF'
\n
\
\t
SET KSQO TO 'ON'|'OFF'
\n
\
\t
SET QUERY_LIMIT TO #
\n
\
\t
SET TIMEZONE TO 'value'
\n
\
\t
SET TRANSACTION ISOLATION LEVEL 'SERIALIZABLE'|'READ COMMITTED'
\n
\
\t
SET CLIENT_ENCODING|NAMES TO 'EUC_JP'|'SJIS'|'EUC_CN'|'EUC_KR'|'EUC_TW'|
\n
\
...
...
@@ -341,7 +340,7 @@ TIMEZONE|XACTISOLEVEL|CLIENT_ENCODING|SERVER_ENCODING"},
{
"show"
,
"show current run-time environment"
,
"\
\t
SHOW DATESTYLE|COST_HEAP|COST_INDEX|GEQO|KSQO|
QUERY_LIMIT|
\n
\
\t
SHOW DATESTYLE|COST_HEAP|COST_INDEX|GEQO|KSQO|
\n
\
TIMEZONE|XACTISOLEVEL|CLIENT_ENCODING|SERVER_ENCODING"
},
{
"unlisten"
,
"stop listening for notification on a condition name"
,
...
...
src/include/executor/executor.h
View file @
4c653825
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: executor.h,v 1.3
3 1999/05/25 16:13
:53 momjian Exp $
* $Id: executor.h,v 1.3
4 1999/06/17 15:15
:53 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -89,12 +89,6 @@ extern void ExecutorEnd(QueryDesc *queryDesc, EState *estate);
extern
void
ExecConstraints
(
char
*
caller
,
Relation
rel
,
HeapTuple
tuple
,
EState
*
estate
);
#ifdef QUERY_LIMIT
extern
int
ExecutorLimit
(
int
limit
);
extern
int
ExecutorGetLimit
(
void
);
#endif
/*
* prototypes from functions in execProcnode.c
*/
...
...
src/include/utils/memutils.h
View file @
4c653825
...
...
@@ -15,7 +15,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: memutils.h,v 1.2
7 1999/05/26 12:57:07
momjian Exp $
* $Id: memutils.h,v 1.2
8 1999/06/17 15:15:59
momjian Exp $
*
* NOTES
* some of the information in this file will be moved to
...
...
@@ -33,18 +33,18 @@
* There used to be some incredibly crufty platform-dependent hackery here,
* but now we rely on the configure script to get the info for us. Much nicer.
*
* NOTE:
_
ALIGN will not work if ALIGNVAL is not a power of 2.
* NOTE:
TYPE
ALIGN will not work if ALIGNVAL is not a power of 2.
* That case seems extremely unlikely to occur in practice, however.
* ----------------
*/
#define
_
ALIGN(ALIGNVAL,LEN) (((long)(LEN) + (ALIGNVAL-1)) & ~(ALIGNVAL-1))
#define
TYPE
ALIGN(ALIGNVAL,LEN) (((long)(LEN) + (ALIGNVAL-1)) & ~(ALIGNVAL-1))
#define SHORTALIGN(LEN)
_
ALIGN(ALIGNOF_SHORT, (LEN))
#define INTALIGN(LEN)
_
ALIGN(ALIGNOF_INT, (LEN))
#define LONGALIGN(LEN)
_
ALIGN(ALIGNOF_LONG, (LEN))
#define DOUBLEALIGN(LEN)
_
ALIGN(ALIGNOF_DOUBLE, (LEN))
#define MAXALIGN(LEN)
_
ALIGN(MAXIMUM_ALIGNOF, (LEN))
#define SHORTALIGN(LEN)
TYPE
ALIGN(ALIGNOF_SHORT, (LEN))
#define INTALIGN(LEN)
TYPE
ALIGN(ALIGNOF_INT, (LEN))
#define LONGALIGN(LEN)
TYPE
ALIGN(ALIGNOF_LONG, (LEN))
#define DOUBLEALIGN(LEN)
TYPE
ALIGN(ALIGNOF_DOUBLE, (LEN))
#define MAXALIGN(LEN)
TYPE
ALIGN(MAXIMUM_ALIGNOF, (LEN))
/*****************************************************************************
* oset.h -- Fixed format ordered set definitions. *
...
...
src/interfaces/libpq/fe-connect.c
View file @
4c653825
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.9
7 1999/05/25 16:15:11
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.9
8 1999/06/17 15:16:04
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -139,9 +139,6 @@ static struct EnvironmentOptions
{
"PGGEQO"
,
"geqo"
},
{
"PGQUERY_LIMIT"
,
"query_limit"
},
{
NULL
}
...
...
src/man/set.l
View file @
4c653825
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/set.l,v 1.2
2 1999/06/09 03:51:40 vadim
Exp $
.\" $Header: /cvsroot/pgsql/src/man/Attic/set.l,v 1.2
3 1999/06/17 15:16:06 momjian
Exp $
.TH SET SQL 05/14/97 PostgreSQL PostgreSQL
.SH NAME
set - set run-time parameters for session
...
...
@@ -74,10 +74,6 @@ enables or disables a workaround for memory exhaustion in queries with many
clauses.
The default is disabled.
.PP
.IR QUERY_LIMIT
restricts the number of rows returned by a query.
The default is unlimited.
.PP
.IR TIMEZONE
sets your timezone.
.PP
...
...
src/template/linux_ppc
View file @
4c653825
AROPT:crs
CFLAGS:-O
-mieee # optimization -O2 removed because of egcs problem
CFLAGS:-O
2 -mieee
SHARED_LIB:-fpic
ALL:
SRCH_INC:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment