diff options
| author | Bruce Momjian | 2006-09-02 18:17:18 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2006-09-02 18:17:18 +0000 |
| commit | 6c785d599d2053d27a8d3395dd3802e6ca2be9b1 (patch) | |
| tree | 49529f76003c6d9cfeb1fb2cb79deddf682b7d37 /src/include | |
| parent | 87eb130ad86465b7b9719bdc178eb2dcc0493a22 (diff) | |
Change FETCH/MOVE to use int8.
Dhanaraj M
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/executor/spi.h | 6 | ||||
| -rw-r--r-- | src/include/nodes/parsenodes.h | 6 | ||||
| -rw-r--r-- | src/include/tcop/pquery.h | 8 | ||||
| -rw-r--r-- | src/include/utils/portal.h | 4 |
4 files changed, 12 insertions, 12 deletions
diff --git a/src/include/executor/spi.h b/src/include/executor/spi.h index 0d91290968d..b8833b355a1 100644 --- a/src/include/executor/spi.h +++ b/src/include/executor/spi.h @@ -2,7 +2,7 @@ * * spi.h * - * $PostgreSQL: pgsql/src/include/executor/spi.h,v 1.55 2006/08/27 23:47:58 tgl Exp $ + * $PostgreSQL: pgsql/src/include/executor/spi.h,v 1.56 2006/09/02 18:17:17 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -126,8 +126,8 @@ extern void SPI_freetuptable(SPITupleTable *tuptable); extern Portal SPI_cursor_open(const char *name, void *plan, Datum *Values, const char *Nulls, bool read_only); extern Portal SPI_cursor_find(const char *name); -extern void SPI_cursor_fetch(Portal portal, bool forward, long count); -extern void SPI_cursor_move(Portal portal, bool forward, long count); +extern void SPI_cursor_fetch(Portal portal, bool forward, int64 count); +extern void SPI_cursor_move(Portal portal, bool forward, int64 count); extern void SPI_cursor_close(Portal portal); extern void AtEOXact_SPI(bool isCommit); diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 9e808396734..acdb05ed4fe 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.326 2006/08/30 23:34:22 tgl Exp $ + * $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.327 2006/09/02 18:17:17 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1439,13 +1439,13 @@ typedef enum FetchDirection FETCH_RELATIVE } FetchDirection; -#define FETCH_ALL LONG_MAX +#define FETCH_ALL LLONG_MAX typedef struct FetchStmt { NodeTag type; FetchDirection direction; /* see above */ - long howMany; /* number of rows, or position argument */ + int64 howMany; /* number of rows, or position argument */ char *portalname; /* name of portal (cursor) */ bool ismove; /* TRUE if MOVE */ } FetchStmt; diff --git a/src/include/tcop/pquery.h b/src/include/tcop/pquery.h index 9a52009d693..eeeaf70a6b1 100644 --- a/src/include/tcop/pquery.h +++ b/src/include/tcop/pquery.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/tcop/pquery.h,v 1.37 2006/03/05 15:59:00 momjian Exp $ + * $PostgreSQL: pgsql/src/include/tcop/pquery.h,v 1.38 2006/09/02 18:17:17 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -30,13 +30,13 @@ extern void PortalStart(Portal portal, ParamListInfo params, extern void PortalSetResultFormat(Portal portal, int nFormats, int16 *formats); -extern bool PortalRun(Portal portal, long count, +extern bool PortalRun(Portal portal, int64 count, DestReceiver *dest, DestReceiver *altdest, char *completionTag); -extern long PortalRunFetch(Portal portal, +extern int64 PortalRunFetch(Portal portal, FetchDirection fdirection, - long count, + int64 count, DestReceiver *dest); #endif /* PQUERY_H */ diff --git a/src/include/utils/portal.h b/src/include/utils/portal.h index bf3d503004c..8104edbca8f 100644 --- a/src/include/utils/portal.h +++ b/src/include/utils/portal.h @@ -39,7 +39,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/portal.h,v 1.67 2006/08/29 02:11:30 momjian Exp $ + * $PostgreSQL: pgsql/src/include/utils/portal.h,v 1.68 2006/09/02 18:17:18 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -173,7 +173,7 @@ typedef struct PortalData bool atStart; bool atEnd; bool posOverflow; - long portalPos; + int64 portalPos; /* Presentation data, primarily used by the pg_cursors system view */ TimestampTz creation_time; /* time at which this portal was defined */ |
