From chrup999@yahoo.com Mon Jun 4 18:23:03 2001 Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by postgresql.org (8.11.3/8.11.1) with SMTP id f54IN3E57563 for ; Mon, 4 Jun 2001 14:23:03 -0400 (EDT) (envelope-from chrup999@yahoo.com) Received: from proxy.compucom.com (HELO Z161842) (204.214.145.2) by smtp.mail.vip.sc5.yahoo.com with SMTP; 4 Jun 2001 18:23:01 -0000 X-Apparently-From: Message-ID: <00cd01c0ed23$616dd4c0$5dd26383@corp.compucom.com> From: "Chris Ruprecht" To: "p-admin" Subject: data/base file structure Date: Mon, 4 Jun 2001 13:22:56 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00CA_01C0ECF9.77DF2B20" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200106/12 X-Sequence-Number: 1548 This is a multi-part message in MIME format. ------=_NextPart_000_00CA_01C0ECF9.77DF2B20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, can somebody explain to me, or point to an explanation of, the way, PostGre= SQL names databases?I have files like 18732 and 7503034 - and they are big = but I have no idea which data lives in what file: /home/pgsql/data/base/18720/ -rw------- 1 postgres postgres 70385664 May 24 13:55 7503034 -rw------- 1 postgres postgres 10788864 May 24 13:54 8748869 -rw------- 1 postgres postgres 458752 May 24 12:21 8939786 -rw------- 1 postgres postgres 158334976 May 24 13:51 8945104 Best regards, Chris ------=_NextPart_000_00CA_01C0ECF9.77DF2B20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all,
 
can somebody explain to me, or poi= nt to an=20 explanation of, the way, PostGreSQL names databases?I have files like 18732= and=20 7503034 - and they are big but I have no idea which data lives in what=20 file:
 
/home/pgsql/data/base/18720/
-rw-------    1 pos= tgres=20 postgres 70385664 May 24 13:55 7503034
-rw-------    1=20 postgres postgres 10788864 May 24 13:54 8748869
-rw-------  &n= bsp;=20 1 postgres postgres   458752 May 24 12:21=20 8939786
-rw-------    1 postgres postgres 158334976 May 2= 4=20 13:51 8945104
 
Best regards,
Chris
 
------=_NextPart_000_00CA_01C0ECF9.77DF2B20-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From vecernik@aon.at Mon Jun 4 18:58:40 2001 Received: from email01.aon.at (WARSL401PIP1.highway.telekom.at [195.3.96.69]) by postgresql.org (8.11.3/8.11.1) with SMTP id f54IwdE73297 for ; Mon, 4 Jun 2001 14:58:40 -0400 (EDT) (envelope-from vecernik@aon.at) Received: (qmail 113774 invoked from network); 4 Jun 2001 18:58:16 -0000 Received: from m222p005.dipool.highway.telekom.at (HELO aon.at) ([62.46.17.165]) (envelope-sender ) by qmail1.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 4 Jun 2001 18:58:16 -0000 Message-ID: <3B1BD859.E9A933A0@aon.at> Date: Mon, 04 Jun 2001 20:50:01 +0200 From: Oliver Vecernik Organization: VECERNIK Datenerfassungssysteme X-Mailer: Mozilla 4.77 [de] (X11; U; Linux 2.4.0-4GB i686) X-Accept-Language: de-AT, en MIME-Version: 1.0 To: Chris Ruprecht CC: p-admin Subject: Re: data/base file structure References: <00cd01c0ed23$616dd4c0$5dd26383@corp.compucom.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200106/13 X-Sequence-Number: 1549 > Chris Ruprecht wrote: > > Hi all, > > can somebody explain to me, or point to an explanation of, the way, > PostGreSQL names databases?I have files like 18732 and 7503034 - and > they are big but I have no idea which data lives in what file: > > /home/pgsql/data/base/18720/ > -rw------- 1 postgres postgres 70385664 May 24 13:55 7503034 > -rw------- 1 postgres postgres 10788864 May 24 13:54 8748869 > -rw------- 1 postgres postgres 458752 May 24 12:21 8939786 > -rw------- 1 postgres postgres 158334976 May 24 13:51 8945104 > In 7.1 and later, there is one database per directory and the directories are named $PGDATA/base/, where is the oid of the pg_database entry. Regards, Oliver From bpalmer@crimelabs.net Mon Jun 11 12:47:54 2001 Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f5BClsE56670 for ; Mon, 11 Jun 2001 08:47:54 -0400 (EDT) (envelope-from pgsql-admin-owner@postgresql.org) Received: from azreal.crimelabs.net (crimelabs.net [216.27.161.184]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f551g6E09047 for ; Mon, 4 Jun 2001 21:42:06 -0400 (EDT) (envelope-from bpalmer@crimelabs.net) Received: from mizer.crimelabs.net (mizer.crimelabs.net [192.168.88.10]) by azreal.crimelabs.net (Postfix) with ESMTP id 32C21802A; Mon, 4 Jun 2001 21:41:59 -0400 (EDT) Date: Mon, 4 Jun 2001 21:41:50 -0400 (EDT) From: bpalmer To: Oliver Vecernik Cc: Chris Ruprecht , p-admin Subject: Re: data/base file structure In-Reply-To: <3B1BD859.E9A933A0@aon.at> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200106/57 X-Sequence-Number: 1595 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > > can somebody explain to me, or point to an explanation of, the way, > > PostGreSQL names databases?I have files like 18732 and 7503034 - and > > they are big but I have no idea which data lives in what file: > > > > /home/pgsql/data/base/18720/ > > -rw------- 1 postgres postgres 70385664 May 24 13:55 7503034 > > -rw------- 1 postgres postgres 10788864 May 24 13:54 8748869 > > -rw------- 1 postgres postgres 458752 May 24 12:21 8939786 > > -rw------- 1 postgres postgres 158334976 May 24 13:51 8945104 Take a look at the oid2name tool (contrib/oid2name). It should be able to decode the file numbers to point to table names for you. - - Brandon - ---------------------------------------------------------------------------- b. palmer, bpalmer@crimelabs.net pgp:crimelabs.net/bpalmer.pgp5 -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQA/AwUBOxw45/YgmKoG+YbuEQIvRgCg/bHVc/m16kRHcEvC0JKkmhP1Zr0An2QF lHtY/lwlTpNNa4eF9NqJ0mDX =9Y3u -----END PGP SIGNATURE-----