From cris@dmcid.net Sat Apr 12 10:44:02 2003 X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C3E21475AA9; Sat, 12 Apr 2003 06:44:02 -0400 (EDT) Received: from menkalinam.com (menkalinam.com [216.121.191.210]) by postgresql.org (Postfix) with ESMTP id E914347580B; Sat, 12 Apr 2003 06:43:58 -0400 (EDT) Received: from cris (docs51-179.menta.net [62.57.50.179]) by menkalinam.com Dinamail Server with SMTPœ id h3CAhxl01862; Sat, 12 Apr 2003 03:43:59 -0700 Message-ID: <001801c300e0$63df2ab0$b332393e@cris> From: "Cristina Surroca" To: , , Subject: Index information and log disable... Date: Sat, 12 Apr 2003 12:43:42 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0015_01C300F1.263AEC60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Status: No, hits=0.4 required=5.0 tests=HTML_40_50 version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/203 X-Sequence-Number: 8358 This is a multi-part message in MIME format. ------=_NextPart_000_0015_01C300F1.263AEC60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi! Has anybody know if it is possible disable log's? It could seem strange, bu= t I need it. I know that I could loose my data information, but as I'm doin= g many tests on some kind of structures, there is any problem with it. The other thing is that I haven't found any way to discover how many pages,= levels, etc, Btree index has in a moment. Is it possible? Thanks a lot, Yours, =20=20=20=20 Cris.. ------=_NextPart_000_0015_01C300F1.263AEC60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi!
Has anybody know if it is possible disable= log's?=20 It could seem strange, but I need it. I know that I could loose my data=20 information, but as I'm doing many tests on some kind of structures, there = is=20 any problem with it.
The other thing is that I haven't found an= y way to=20 discover how many pages, levels, etc, Btree index has in a moment. Is it=20 possible?
 
Thanks a lot,
 
Yours,
   
   Cris..
------=_NextPart_000_0015_01C300F1.263AEC60-- From shridhar_daithankar@persistent.co.in Sat Apr 12 10:57:23 2003 X-Original-To: pgsql-general@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 9033C47631B for ; Sat, 12 Apr 2003 06:57:23 -0400 (EDT) Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by postgresql.org (Postfix) with ESMTP id 1EA33476305 for ; Sat, 12 Apr 2003 06:57:22 -0400 (EDT) Received: (from root@localhost) by www.pspl.co.in (8.11.6/8.11.6) id h3CAvUP08506 for ; Sat, 12 Apr 2003 16:27:30 +0530 Received: from daithan.intranet.pspl.co.in (daithan.intranet.pspl.co.in [192.168.7.161]) by www.pspl.co.in (8.11.6/8.11.0) with ESMTP id h3CAvUa08501 for ; Sat, 12 Apr 2003 16:27:30 +0530 From: Shridhar Daithankar To: Subject: Re: Index information and log disable... Date: Sat, 12 Apr 2003 16:27:44 +0530 User-Agent: KMail/1.5 References: <001801c300e0$63df2ab0$b332393e@cris> In-Reply-To: <001801c300e0$63df2ab0$b332393e@cris> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200304121627.44764.shridhar_daithankar@nospam.persistent.co.in> X-Spam-Status: No, hits=-32.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/765 X-Sequence-Number: 40830 On Saturday 12 April 2003 16:13, you wrote: > Has anybody know if it is possible disable log's? It could seem strange, > but I need it. I know that I could loose my data information, but as I'm > doing many tests on some kind of structures, there is any problem with it. Try looking into postgresql.conf. You can tweak some log settings there. Although it may not shutdown logging, it might reduce it to acceptable level. Or how about redirecting logs to /dev/null? Shridhar From scott.marlowe@ihs.com Mon Apr 14 15:22:51 2003 X-Original-To: pgsql-general@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 37EEF475F1C for ; Mon, 14 Apr 2003 11:22:51 -0400 (EDT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by postgresql.org (Postfix) with ESMTP id 00DF0475F00 for ; Mon, 14 Apr 2003 11:22:46 -0400 (EDT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.9/8.12.9) with ESMTP id h3EFMERF015910; Mon, 14 Apr 2003 09:22:14 -0600 (MDT) Date: Mon, 14 Apr 2003 09:17:41 -0600 (MDT) From: "scott.marlowe" To: Cristina Surroca Cc: Subject: Re: Index information and log disable... In-Reply-To: <001801c300e0$63df2ab0$b332393e@cris> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner: Found to be clean X-MailScanner-SpamCheck: X-Spam-Status: No, hits=-31.7 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES,USER_AGENT_PINE autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/808 X-Sequence-Number: 40873 Please don't cross post questions across multiple groups, it's considered impolite. On Sat, 12 Apr 2003, Cristina Surroca wrote: > Hi! > Has anybody know if it is possible disable log's? It could seem > strange, but I need it. I know that I could loose my data information, > but as I'm doing many tests on some kind of structures, there is any > problem with it. Look in the $PGDATA/postgresql.conf file for a line like this: #silent_mode = false and change it to: silent_mode = true > The other thing is that I haven't found any way to discover how many > pages, levels, etc, Btree index has in a moment. Is it possible? for most users the easiest way is with oid2name. run by itself it will tell you the oids of all your databases: oid2name All databases: --------------------------------- 16976 = postgres 1 = template1 16975 = template0 with the -d switch it tells you all the oids of all the tables etc in that database: oid2name -d postgres All tables from database "postgres": --------------------------------- 1172039 = accounts 1172041 = accounts_pkey 1401440 = b 1172031 = branches 1172033 = branches_pkey 1172043 = history 1401427 = k 1401425 = k_id_seq 16977 = rax 51531 = rax_corp_acct_id_dx 51532 = rax_cust_acct_id_dx 51534 = rax_cust_acct_name_dx 51533 = rax_order_item_renew_dx 51530 = rax_pri_acct_id_dx 1172035 = tellers 1172037 = tellers_pkey 1455938 = test 1455936 = test_id_seq Since all the data for most postgresql databases sits in the $PGDATA/base directory, you can find the size like this: ls -l $PGDATA/base/dboid/fileoid For the rax_corp_acct_id_dx in postgres database, it would be: ls -l $PGDATA/base/16976/51531 -rw------- 1 postgres postgres 1105920 Mar 28 11:17 /mnt/d1/data/base/16976/51531 so that's about 1 meg.