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

Commit4d6ee26

Browse files
committed
Don't force creation of the FSM on searches. It will still be created
as soon as the first page fills up, and is marked as (almost) full,though.
1 parentc3cee16 commit4d6ee26

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

‎src/backend/storage/freespace/freespace.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/storage/freespace/freespace.c,v 1.68 2008/11/26 17:08:57 heikki Exp $
11+
* $PostgreSQL: pgsql/src/backend/storage/freespace/freespace.c,v 1.69 2008/11/27 13:32:26 heikki Exp $
1212
*
1313
*
1414
* NOTES:
@@ -638,13 +638,8 @@ fsm_search(Relation rel, uint8 min_cat)
638638
Bufferbuf;
639639
uint8max_avail=0;
640640

641-
/*
642-
* Read the FSM page. The root page is created if it doesn't exist
643-
* yet, to save future searchers the effort of having to call
644-
* smgrnblocks() in fsm_readbuf(), only to see that the FSM is
645-
* completely empty.
646-
*/
647-
buf=fsm_readbuf(rel,addr, (addr.level!=FSM_ROOT_LEVEL));
641+
/* Read the FSM page. */
642+
buf=fsm_readbuf(rel,addr, false);
648643

649644
/* Search within the page */
650645
if (BufferIsValid(buf))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp