Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit21e2544

Browse files
committed
Update obsolete comment.
1 parentb34aa33 commit21e2544

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

‎src/backend/utils/sort/tuplesort.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
* Portions Copyright (c) 1994, Regents of the University of California
9292
*
9393
* IDENTIFICATION
94-
* $PostgreSQL: pgsql/src/backend/utils/sort/tuplesort.c,v 1.58 2006/02/1905:54:06 tgl Exp $
94+
* $PostgreSQL: pgsql/src/backend/utils/sort/tuplesort.c,v 1.59 2006/02/1919:59:53 tgl Exp $
9595
*
9696
*-------------------------------------------------------------------------
9797
*/
@@ -324,8 +324,7 @@ struct Tuplesortstate
324324
#defineUSEMEM(state,amt)((state)->availMem -= (amt))
325325
#defineFREEMEM(state,amt)((state)->availMem += (amt))
326326

327-
/*--------------------
328-
*
327+
/*
329328
* NOTES about on-tape representation of tuples:
330329
*
331330
* We require the first "unsigned int" of a stored tuple to be the total size
@@ -357,16 +356,13 @@ struct Tuplesortstate
357356
*
358357
* We count space allocated for tuples against the workMem limit, plus
359358
* the space used by the variable-size arrays memtuples and memtupindex.
360-
* Fixed-size space (primarily the LogicalTapeSet I/O buffers) is not
361-
* counted.
359+
* Fixed-size space is not counted; it's small enough to not be interesting.
362360
*
363361
* Note that we count actual space used (as shown by GetMemoryChunkSpace)
364362
* rather than the originally-requested size. This is important since
365363
* palloc can add substantial overhead. It's not a complete answer since
366364
* we won't count any wasted space in palloc allocation blocks, but it's
367365
* a lot better than what we were doing before 7.3.
368-
*
369-
*--------------------
370366
*/
371367

372368
/*
@@ -2407,6 +2403,7 @@ readtup_datum(Tuplesortstate *state, int tapenum, unsigned int len)
24072403
sizeof(tuplen))!=sizeof(tuplen))
24082404
elog(ERROR,"unexpected end of data");
24092405

2406+
/* if pass-by-ref data type, must recompute the Datum pointer */
24102407
if (!tuple->isNull&& !state->datumTypeByVal)
24112408
tuple->val=PointerGetDatum(((char*)tuple)+
24122409
MAXALIGN(sizeof(DatumTuple)));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp