pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
- Need Clarification about filenodes under base database directory
2+ messages / 2 participants
[nested] [flat]

* - Need Clarification about filenodes under base database directory
@ 2017-03-23 07:40 Panneer Selvam <panneerselvamrmd@gmail.com>
  2017-03-23 13:47 ` Re: - Need Clarification about filenodes under base database directory Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Panneer Selvam @ 2017-03-23 07:40 UTC (permalink / raw)
  To: pgsql-admin-owner@postgresql.org; +Cc: pgsql-admin

Dear All,

We have a database with no active relations on it. ( I.e. No tables or
Indexes exist as of now ).
But when we look at our base directory for this database, it's having many
relations pointing pg_type & pg_toast.

Curious to know the necessity of these objects and is this normal scenario ?

/pgDATA/base/102999

ls
1247
1247_fsm
1247_vm
13111
14702
3599

test_ora=# SELECT pg_filenode_relation(0,1247);
 pg_filenode_relation
----------------------
 pg_type
(1 row)

test_ora=# SELECT pg_filenode_relation(0,13111);
  pg_filenode_relation
-------------------------
 pg_toast.pg_toast_13109
(1 row)

test_ora=# SELECT pg_filenode_relation(0,14702);
     pg_filenode_relation
-------------------------------
 pg_toast.pg_toast_14697_index
(1 row)

test_ora=# SELECT pg_filenode_relation(0,3599);
     pg_filenode_relation
------------------------------
 pg_toast.pg_toast_3596_index

Regards,
​Panneerselvam D​

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: - Need Clarification about filenodes under base database directory
  2017-03-23 07:40 - Need Clarification about filenodes under base database directory Panneer Selvam <panneerselvamrmd@gmail.com>
@ 2017-03-23 13:47 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2017-03-23 13:47 UTC (permalink / raw)
  To: Panneer Selvam <panneerselvamrmd@gmail.com>; +Cc: pgsql-admin

Panneer Selvam <panneerselvamrmd@gmail.com> writes:
> We have a database with no active relations on it. ( I.e. No tables or
> Indexes exist as of now ).
> But when we look at our base directory for this database, it's having many
> relations pointing pg_type & pg_toast.

Some of the system catalogs have toast tables attached ...

			regards, tom lane


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2017-03-23 13:47 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-03-23 07:40 - Need Clarification about filenodes under base database directory Panneer Selvam <panneerselvamrmd@gmail.com>
2017-03-23 13:47 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox