Re: [HACKERS] Which table stored in which file in PGDATA/base/[db-oid]

2013-06-04 Thread David Kerr
- On Sat, Jun 1, 2013 at 3:57 PM, Andres Freund wrote: - - > On 2013-06-01 13:04:55 +0200, Martijn van Oosterhout wrote: - > To get the actual relfilenode you actually need to do something like: - > SELECT relname, pg_relation_filenode(pg_class.oid) FROM pg_class; - - Dear Andres - - You are rig

Re: [HACKERS] Which table stored in which file in PGDATA/base/[db-oid]

2013-06-02 Thread Soroosh Sardari
On Sat, Jun 1, 2013 at 3:57 PM, Andres Freund wrote: > On 2013-06-01 13:04:55 +0200, Martijn van Oosterhout wrote: > > On Sat, Jun 01, 2013 at 03:27:40PM +0430, Soroosh Sardari wrote: > > > Yes, I have some files which is not in pg_class.relfilenode of any > table or > > > index. > > > I want to k

Re: [HACKERS] Which table stored in which file in PGDATA/base/[db-oid]

2013-06-01 Thread Soroosh Sardari
Yes, I'm sure. Difference of filenodes and new files changed w.r.t my first mail, because I added a table. I attached 3 files, newfile.pg : list of numerical files in base/[db-oid], ls | grep '[[:digit:]]\>' filenode.pg : select distinct relfilenode from pg_class newfile-filenode.pg : Set of oids

Re: [HACKERS] Which table stored in which file in PGDATA/base/[db-oid]

2013-06-01 Thread Andres Freund
On 2013-06-01 13:04:55 +0200, Martijn van Oosterhout wrote: > On Sat, Jun 01, 2013 at 03:27:40PM +0430, Soroosh Sardari wrote: > > Yes, I have some files which is not in pg_class.relfilenode of any table or > > index. > > I want to know which table or index stored in such files. > > That shouldn't

Re: [HACKERS] Which table stored in which file in PGDATA/base/[db-oid]

2013-06-01 Thread Victor Yegorov
2013/6/1 Martijn van Oosterhout > On Sat, Jun 01, 2013 at 03:27:40PM +0430, Soroosh Sardari wrote: > > Yes, I have some files which is not in pg_class.relfilenode of any table > or > > index. > > I want to know which table or index stored in such files. > > That shouldn't happen. Are you sure you

Re: [HACKERS] Which table stored in which file in PGDATA/base/[db-oid]

2013-06-01 Thread Martijn van Oosterhout
On Sat, Jun 01, 2013 at 03:27:40PM +0430, Soroosh Sardari wrote: > Yes, I have some files which is not in pg_class.relfilenode of any table or > index. > I want to know which table or index stored in such files. That shouldn't happen. Are you sure you're looking in the right database? Kan you list

Re: [HACKERS] Which table stored in which file in PGDATA/base/[db-oid]

2013-06-01 Thread Soroosh Sardari
Yes, I have some files which is not in pg_class.relfilenode of any table or index. I want to know which table or index stored in such files. > From that page: > > Each table and index is stored in a separate file. For ordinary > relations, these files are named after the table or index's filenod

Re: [HACKERS] Which table stored in which file in PGDATA/base/[db-oid]

2013-06-01 Thread Martijn van Oosterhout
On Sat, Jun 01, 2013 at 03:11:50PM +0430, Soroosh Sardari wrote: > Dear Hackers > > I've created a new DB, and a bunch of files created in base/12054, 12054 > is oid of the new DB. > I want to find what table stored in each file. > BTW, I read this > http://www.postgresql.org/docs/9.2/interactive

[HACKERS] Which table stored in which file in PGDATA/base/[db-oid]

2013-06-01 Thread Soroosh Sardari
Dear Hackers I've created a new DB, and a bunch of files created in base/12054, 12054 is oid of the new DB. I want to find what table stored in each file. BTW, I read this http://www.postgresql.org/docs/9.2/interactive/storage-file-layout.html I have 156 files with numerical names, vm and fsm fil