mirror of
https://github.com/postgres/postgres.git
synced 2025-09-09 13:09:39 +03:00
Support window functions a la SQL:2008.
Hitoshi Harada, with some kibitzing from Heikki and Tom.
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/sort/tuplestore.c,v 1.44 2008/12/27 17:39:00 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/sort/tuplestore.c,v 1.45 2008/12/28 18:53:59 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1148,6 +1148,19 @@ tuplestore_trim(Tuplestorestate *state)
|
||||
state->truncated = true;
|
||||
}
|
||||
|
||||
/*
|
||||
* tuplestore_in_memory
|
||||
*
|
||||
* Returns true if the tuplestore has not spilled to disk.
|
||||
*
|
||||
* XXX exposing this is a violation of modularity ... should get rid of it.
|
||||
*/
|
||||
bool
|
||||
tuplestore_in_memory(Tuplestorestate *state)
|
||||
{
|
||||
return (state->status == TSS_INMEM);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Tape interface routines
|
||||
|
Reference in New Issue
Block a user