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
21e2544a
Commit
21e2544a
authored
Feb 19, 2006
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update obsolete comment.
parent
b34aa337
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
src/backend/utils/sort/tuplesort.c
src/backend/utils/sort/tuplesort.c
+4
-7
No files found.
src/backend/utils/sort/tuplesort.c
View file @
21e2544a
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/sort/tuplesort.c,v 1.5
8 2006/02/19 05:54:06
tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/sort/tuplesort.c,v 1.5
9 2006/02/19 19:59:53
tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -324,8 +324,7 @@ struct Tuplesortstate
...
@@ -324,8 +324,7 @@ struct Tuplesortstate
#define USEMEM(state,amt) ((state)->availMem -= (amt))
#define USEMEM(state,amt) ((state)->availMem -= (amt))
#define FREEMEM(state,amt) ((state)->availMem += (amt))
#define FREEMEM(state,amt) ((state)->availMem += (amt))
/*--------------------
/*
*
* NOTES about on-tape representation of tuples:
* NOTES about on-tape representation of tuples:
*
*
* We require the first "unsigned int" of a stored tuple to be the total size
* We require the first "unsigned int" of a stored tuple to be the total size
...
@@ -357,16 +356,13 @@ struct Tuplesortstate
...
@@ -357,16 +356,13 @@ struct Tuplesortstate
*
*
* We count space allocated for tuples against the workMem limit, plus
* We count space allocated for tuples against the workMem limit, plus
* the space used by the variable-size arrays memtuples and memtupindex.
* the space used by the variable-size arrays memtuples and memtupindex.
* Fixed-size space (primarily the LogicalTapeSet I/O buffers) is not
* Fixed-size space is not counted; it's small enough to not be interesting.
* counted.
*
*
* Note that we count actual space used (as shown by GetMemoryChunkSpace)
* Note that we count actual space used (as shown by GetMemoryChunkSpace)
* rather than the originally-requested size. This is important since
* rather than the originally-requested size. This is important since
* palloc can add substantial overhead. It's not a complete answer since
* palloc can add substantial overhead. It's not a complete answer since
* we won't count any wasted space in palloc allocation blocks, but it's
* we won't count any wasted space in palloc allocation blocks, but it's
* a lot better than what we were doing before 7.3.
* a lot better than what we were doing before 7.3.
*
*--------------------
*/
*/
/*
/*
...
@@ -2407,6 +2403,7 @@ readtup_datum(Tuplesortstate *state, int tapenum, unsigned int len)
...
@@ -2407,6 +2403,7 @@ readtup_datum(Tuplesortstate *state, int tapenum, unsigned int len)
sizeof
(
tuplen
))
!=
sizeof
(
tuplen
))
sizeof
(
tuplen
))
!=
sizeof
(
tuplen
))
elog
(
ERROR
,
"unexpected end of data"
);
elog
(
ERROR
,
"unexpected end of data"
);
/* if pass-by-ref data type, must recompute the Datum pointer */
if
(
!
tuple
->
isNull
&&
!
state
->
datumTypeByVal
)
if
(
!
tuple
->
isNull
&&
!
state
->
datumTypeByVal
)
tuple
->
val
=
PointerGetDatum
(((
char
*
)
tuple
)
+
tuple
->
val
=
PointerGetDatum
(((
char
*
)
tuple
)
+
MAXALIGN
(
sizeof
(
DatumTuple
)));
MAXALIGN
(
sizeof
(
DatumTuple
)));
...
...
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