Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 42DC0475C9E for ; Tue, 7 Jan 2003 23:02:37 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 9C972475956 for ; Tue, 7 Jan 2003 23:02:36 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h0842f0U000598; Tue, 7 Jan 2003 23:02:41 -0500 (EST) To: Tilo Schwarz Cc: pgsql-admin@postgresql.org Subject: Re: Vacuum explained In-reply-to: <200301080013.24633.mail@tilo-schwarz.de> References: <1041884632.15455.112.camel@camel> <26423.1041885959@sss.pgh.pa.us> <200301080013.24633.mail@tilo-schwarz.de> Comments: In-reply-to Tilo Schwarz message dated "Wed, 08 Jan 2003 00:13:24 +0100" Date: Tue, 07 Jan 2003 23:02:41 -0500 Message-ID: <597.1041998561@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/61 X-Sequence-Number: 6903 Tilo Schwarz writes: > Do you try to reuse tuples with a similar storage size (or something like > that) No. If we try to put a tuple on a page, and there's room there, we'll store it. There is no intra-page fragmentation problem because we can always reshuffle the tuples on a particular page --- this is what the "page item pointer" overhead buys us. Also, since any given file only holds tuples of a particular table, there's already some degree of size-similarity present. This gets pretty weak if some of the fields are of widely varying length, of course, but I'm dubious that there's much gold to be mined by thinking harder about which page we put a tuple on... > Any pointers to documentation or into the source code are welcome! The comments at the head of src/include/storage/bufpage.h might be illuminating. Also see http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/page.html regards, tom lane