Return-Path: owner-postman Received: from LOCALHOST (LOCALHOST [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id CAA05959 for postgres-redist; Mon, 6 Jun 1994 02:58:04 -0700 Resent-From: POSTGRES mailing list Resent-Message-Id: <199406060958.CAA05959@nobozo.CS.Berkeley.EDU> Sender: owner-postman@postgres.Berkeley.EDU X-Return-Path: owner-postman Received: from faerie.CS.Berkeley.EDU (faerie.CS.Berkeley.EDU [128.32.149.14]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with ESMTP id CAA05949 for ; Mon, 6 Jun 1994 02:58:03 -0700 Received: from LOCALHOST (LOCALHOST [127.0.0.1]) by faerie.CS.Berkeley.EDU (8.6.4/8.1B) with SMTP id CAA13241; Mon, 6 Jun 1994 02:57:46 -0700 Message-Id: <199406060957.CAA13241@faerie.CS.Berkeley.EDU> X-Authentication-Warning: faerie.CS.Berkeley.EDU: Host LOCALHOST didn't use HELO protocol From: aoki@postgres.Berkeley.EDU (Paul M. Aoki) To: shlam@ie.cuhk.hk Cc: postgres@postgres.Berkeley.EDU Subject: Re: how to clean up pg_log, pg_time and pg_variable? Reply-To: aoki@postgres.Berkeley.EDU (Paul M. Aoki) In-reply-to: Your message of Mon, 06 Jun 94 17:39:03 +0800 <9406060939.AA14430@eng.ie.cuhk.hk> Date: Mon, 06 Jun 94 02:57:46 -0700 X-Sender: aoki@postgres.Berkeley.EDU Resent-To: postgres-redist@postgres.Berkeley.EDU X-Mts: smtp Resent-Date: Mon, 06 Jun 94 02:58:03 -0700 Resent-XMts: smtp shlam@ie.cuhk.hk writes: > I discover that the size of $postgres/data/pg_log, pg_time and > pg_variable grow very large. pg_variable should never grow beyond one disk page (8k). with respect to the other two, pg_log grows at 2 bits (.25 bytes) per transaction and pg_time grows at 4 bytes per transaction. > Is there any command to clean up or reset these files ? what pg_log and pg_time store are the commit status and commit time of each transaction. in theory, this could be compressed by something like run-length encoding (since most transactions commit) or truncated after vacuuming (if you could somehow arrange to vacuum the entire installation..). in fact, they just grow. it would be a bad idea to remove them or truncate them. -- Paul M. Aoki | CS Div., Dept. of EECS, UCB | aoki@postgres.Berkeley.EDU | Berkeley, CA 94720 | ...!uunet!ucbvax!aoki ============================================================================== To add/remove yourself to/from the POSTGRES mailing list: send mail with the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU" If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and a human will deal with it. DO NOT post to the "postgres" mailing list. ==============================================================================