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

Поиск
Список
Период
Сортировка
От David Kerr
Тема Re: Which table stored in which file in PGDATA/base/[db-oid]
Дата
Msg-id 20130604201548.GC96228@mr-paradox.net
обсуждение исходный текст
Ответ на Re: Which table stored in which file in PGDATA/base/[db-oid]  (Soroosh Sardari <soroosh.sardari@gmail.com>)
Список pgsql-hackers
- On Sat, Jun 1, 2013 at 3:57 PM, Andres Freund <andres@2ndquadrant.com>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 right, Some tables are mapped, and some other are global.
- The SQL query is really helpful.

Another option, is to use oid2name
http://www.postgresql.org/docs/devel/static/oid2name.html

oid2name -S -d <database> -f <filename> 



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Improved error message for CREATE EXTENSION patch...
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Configurable location for extension .control files