We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0028b22 commit 082aca9Copy full SHA for 082aca9
src/backend/storage/page/bufpage.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/storage/page/bufpage.c,v 1.77 2008/01/01 19:45:52 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/storage/page/bufpage.c,v 1.78 2008/02/10 20:39:08 tgl Exp $
12
13
*-------------------------------------------------------------------------
14
*/
@@ -489,6 +489,9 @@ PageGetExactFreeSpace(Page page)
489
space = (int) ((PageHeader) page)->pd_upper -
490
(int) ((PageHeader) page)->pd_lower;
491
492
+ if (space < 0)
493
+ return 0;
494
+
495
return (Size) space;
496
}
497
0 commit comments