Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id BEBFA19DE833 for ; Wed, 7 Mar 2012 11:01:29 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S5IMq-0003RZ-8w for pgsql-admin@postgresql.org; Wed, 07 Mar 2012 15:01:28 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q27F1CIK007062; Wed, 7 Mar 2012 10:01:13 -0500 (EST) To: Steve Crawford cc: Lukasz Brodziak , pgsql-admin@postgresql.org Subject: Re: pg_attribute file in PostgreSQL 9.0 In-reply-to: <4F577217.3080204@pinpointresearch.com> References: <4F577217.3080204@pinpointresearch.com> Comments: In-reply-to Steve Crawford message dated "Wed, 07 Mar 2012 06:35:03 -0800" Date: Wed, 07 Mar 2012 10:01:12 -0500 Message-ID: <7061.1331132472@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/23 X-Sequence-Number: 39211 Steve Crawford writes: > On 03/07/2012 05:14 AM, Lukasz Brodziak wrote: >> I have a question regarding pg_attribute. In which file it is stored >> because the relfilenode for it shows 0 and file 1249 isn't present in >> the folder. > select pg_relation_filepath('pg_attribute'); > From the docs, relfilenode is: > "Name of the on-disk file of this relation; zero means this is a > "mapped" relation whose disk file name is determined by low-level state" > However the meaning "mapped relation" and "low-level state" are > difficult to divine from the docs. Go with the function. Or use pg_relation_filenode() if you want the result of the mapping. regards, tom lane