pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
find table name
4+ messages / 3 participants
[nested] [flat]

* find table name
@ 2003-12-06 11:34 Ashok Chauhan <ashok@kalculate.com>
  2003-12-07 13:12 ` Re: find table name greg@turnstep.com
  0 siblings, 1 reply; 4+ messages in thread

From: Ashok Chauhan @ 2003-12-06 11:34 UTC (permalink / raw)
  To: pgsql-admin


hi
In postgresql  all databases are stored in /data/base directory in
numbers form and all the related tables with that database are stored in
that directory again in numbers form.
so there is any command or query to see the original table names.
just like:-  select * from pg_stat_database; for databases.

thank you
have a nice day.




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

* Re: find table name
  2003-12-06 11:34 find table name Ashok Chauhan <ashok@kalculate.com>
@ 2003-12-07 13:12 ` greg@turnstep.com
  2003-12-08 09:33   ` Re: find table name Thierry Missimilly <THIERRY.MISSIMILLY@BULL.NET>
  0 siblings, 1 reply; 4+ messages in thread

From: greg@turnstep.com @ 2003-12-07 13:12 UTC (permalink / raw)
  To: pgsql-admin; +Cc: ashok@kalculate.com


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
 
> In postgresql  all databases are stored in /data/base directory in
> numbers form and all the related tables with that database are stored in
> that directory again in numbers form.
> so there is any command or query to see the original table names.
> just like:-  select * from pg_stat_database; for databases.
 
You can find the mapping between the "numbers" on disk and the tables by
looking at the "relfilenode", "relname" and "relkind" columns of the
pg_class table. However, it is best to not mess with those files at
all. What are you trying to do?
 
- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200312070810
 
-----BEGIN PGP SIGNATURE-----
 
iD8DBQE/0yb5vJuQZxSWSsgRAoOMAJ9FZsojXzvCVgrM6Tv0B3f+eI0k8QCg6X8C
fqQi82DmYdZduq4lwADIou0=
=92w+
-----END PGP SIGNATURE-----





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

* Re: find table name
  2003-12-06 11:34 find table name Ashok Chauhan <ashok@kalculate.com>
  2003-12-07 13:12 ` Re: find table name greg@turnstep.com
@ 2003-12-08 09:33   ` Thierry Missimilly <THIERRY.MISSIMILLY@BULL.NET>
  2003-12-09 00:39     ` Re: find table name greg@turnstep.com
  0 siblings, 1 reply; 4+ messages in thread

From: Thierry Missimilly @ 2003-12-08 09:33 UTC (permalink / raw)
  To: greg@turnstep.com; +Cc: pgsql-admin; ashok@kalculate.com

Hi the list,

I used to run oid2name to find the relation between database names and
.../data/base/<dir> but i'm interested also to identify relation between table
names, index names and files number as would try to decrease Wait I/O by
setting tables on one disk and indexes on another one.
The tables pg_class and pg_index do not give the symbolic name with the
"numbers".

Thierry Missimilly.



greg@turnstep.com wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> > In postgresql  all databases are stored in /data/base directory in
> > numbers form and all the related tables with that database are stored in
> > that directory again in numbers form.
> > so there is any command or query to see the original table names.
> > just like:-  select * from pg_stat_database; for databases.
>
> You can find the mapping between the "numbers" on disk and the tables by
> looking at the "relfilenode", "relname" and "relkind" columns of the
> pg_class table. However, it is best to not mess with those files at
> all. What are you trying to do?
>
> - --
> Greg Sabino Mullane greg@turnstep.com
> PGP Key: 0x14964AC8 200312070810
>
> -----BEGIN PGP SIGNATURE-----
>
> iD8DBQE/0yb5vJuQZxSWSsgRAoOMAJ9FZsojXzvCVgrM6Tv0B3f+eI0k8QCg6X8C
> fqQi82DmYdZduq4lwADIou0=
> =92w+
> -----END PGP SIGNATURE-----
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Attachments:

THIERRY.MISSIMILLY.vcf (text/x-vcard, 326B) download begin:vcard n:Missimilly;Thierry tel;fax:+33 (0)4 76 29 78 78 tel;work:+33 (0)4 76 29 74 54 x-mozilla-html:FALSE url:http:\\www.bull.com org:BIS/R&D adr:;;Bull SA, 1, rue de provence - BP 208;ECHIROLLES;;38432;FRANCE version:2.1 email;internet:Thierry.Missimilly@bull.net x-mozilla-cpt:;-18184 fn:Thierry Missimilly end:vcard
^ permalink raw reply [nested|flat] 4+ messages in thread

* Re: find table name
  2003-12-06 11:34 find table name Ashok Chauhan <ashok@kalculate.com>
  2003-12-07 13:12 ` Re: find table name greg@turnstep.com
  2003-12-08 09:33   ` Re: find table name Thierry Missimilly <THIERRY.MISSIMILLY@BULL.NET>
@ 2003-12-09 00:39     ` greg@turnstep.com
  0 siblings, 0 replies; 4+ messages in thread

From: greg@turnstep.com @ 2003-12-09 00:39 UTC (permalink / raw)
  To: pgsql-admin; +Cc: thierry.missimilly@bull.net


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
 
> I used to run oid2name to find the relation between database names and
> .../data/base/<dir> but i'm interested also to identify relation between table
> names, index names and files number as would try to decrease Wait I/O by
> setting tables on one disk and indexes on another one.
> The tables pg_class and pg_index do not give the symbolic name with the
> "numbers".
 
This is probably not what you want to do - there are less drastic ways to
get more performance out of PostgreSQL. One thing you can do is move
your WAL files to a different disk, as they are very heavily accessed.
(this is the pg_xlog directory). There are lots of other things that can
help as well - post your hardware and/or queries to the performance list
and you should get some good responses:
 
http://tinyurl.com/yc2b
 
- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200312081935
 
-----BEGIN PGP SIGNATURE-----
 
iD8DBQE/1RlYvJuQZxSWSsgRAjV4AJ9uvU5e4yStJSWLhEJZXW/TEiiDGgCgmwKM
rymCF633HioUBJQ0Oj0obZg=
=rf6h
-----END PGP SIGNATURE-----





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


end of thread, other threads:[~2003-12-09 00:39 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-12-06 11:34 find table name Ashok Chauhan <ashok@kalculate.com>
2003-12-07 13:12 ` greg@turnstep.com
2003-12-08 09:33   ` Thierry Missimilly <THIERRY.MISSIMILLY@BULL.NET>
2003-12-09 00:39     ` greg@turnstep.com

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