Return-Path: owner-postman Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id UAA18531 for postgres-redist; Wed, 31 Aug 1994 20:56:21 -0700 Resent-From: POSTGRES mailing list Resent-Message-Id: <199409010356.UAA18531@nobozo.CS.Berkeley.EDU> X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol Sender: owner-postman@postgres.Berkeley.EDU X-Return-Path: owner-postman Received: from Princeton.EDU (root@Princeton.EDU [128.112.128.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id UAA18521 for ; Wed, 31 Aug 1994 20:56:19 -0700 Received: from fs.CS.Princeton.EDU by Princeton.EDU (5.65b/2.111/princeton) id AA14598; Wed, 31 Aug 94 23:56:09 -0400 Received: from cs (aleph.CS.Princeton.EDU) by cs.Princeton.EDU (4.1/1.105) id AA02914; Wed, 31 Aug 94 23:56:09 EDT From: Pei Cao Received: by cs (5.65/CS-Client) id AA04017; Wed, 31 Aug 1994 23:56:08 -0400 Date: Wed, 31 Aug 1994 23:56:08 -0400 Message-Id: <9409010356.AA04017@cs> To: postgres@postgres.Berkeley.EDU Subject: how are key values stored in a B-tree index files? Resent-To: postgres-redist@postgres.Berkeley.EDU Resent-Date: Wed, 31 Aug 94 20:56:21 -0700 Resent-XMts: smtp Hi, I am trying to figure out how the B-tree index file works. I have a relation with a non-clustered unique integer key, and I built a B-tree index on it. I'd like to figure out from the index files what disk pages/blocks have tuples whose key values are between, say, 500 and 600. So I used "pagedoc -b -d2 index" to dump the index file contents. The problem is, it seems that each IndexTupleData only has the tid of the corresponding heap tuple, but no key value of this heap tuple. So how does a search for a tuple with a particular key work? I don't even see the key values on internal pages, so how does a search know which direction to go down the b-tree? Thanks a lot! Pei Cao Grad. Student, CS Dept. Princeton University ============================================================================== To add/remove yourself to/from the POSTGRES mailing list: send mail with the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU" If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and a human will deal with it. DO NOT post to the "postgres" mailing list. ==============================================================================