Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id AC856F8067D for ; Thu, 10 Nov 2011 22:55:26 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 18792-07 for ; Fri, 11 Nov 2011 02:55:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-gx0-f174.google.com (mail-gx0-f174.google.com [209.85.161.174]) by mail.postgresql.org (Postfix) with ESMTP id 1BEE7F8067C for ; Thu, 10 Nov 2011 22:55:18 -0400 (AST) Received: by ggnb2 with SMTP id b2so3732903ggn.19 for ; Thu, 10 Nov 2011 18:55:18 -0800 (PST) Received: by 10.101.179.34 with SMTP id g34mr3446974anp.18.1320980118606; Thu, 10 Nov 2011 18:55:18 -0800 (PST) Received: from ayaki.localdomain (office1.postnewspapers.com.au. [150.101.171.128]) by mx.google.com with ESMTPS id i31sm7660314anm.19.2011.11.10.18.55.16 (version=SSLv3 cipher=OTHER); Thu, 10 Nov 2011 18:55:18 -0800 (PST) Message-ID: <4EBC8E52.60908@ringerc.id.au> Date: Fri, 11 Nov 2011 10:54:10 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1 MIME-Version: 1.0 To: Karuna Karpe CC: pgsql-admin@postgresql.org Subject: Re: error log, tablespace, wal files References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201111/51 X-Sequence-Number: 38645 On 11/10/2011 02:29 PM, Karuna Karpe wrote: > 1) what is tablespace in postgres? It's a way of putting some tables, indexes, etc into a different part of your system's storage. Sometimes you want to do this to put a really big table on slower, cheaper storage. Sometimes you might want to put indexes on really fast but expensive or small and limited storage. It's also useful for splitting up tables that're often accessed concurrently so they're on different disk arrays and don't compete with each other for I/O. There are lots of uses. > 2) one more issue is that, I try to rename or delete some file in > /opt/PostgresPlus/9.0/data/base/16428/ directory. Don't do that! Do not mess with anything in the PostgreSQL data directory unless you know *EXACTLY* what you are doing. > when I restart > postgres server, it start normally. but I thing this is wrong. I > rename or delete file into above directory, that means my > database(having 16428 oid) is corrupted. So How can my postgres server > is started normally?? Because it hasn't needed to access that file yet. When it does, it'll report errors for attempts to access that file but will otherwise continue to function normally. PostgreSQL doesn't try to verify the whole database on startup. Imagine how long that'd take! > I want to see the log file for that database > corruption. Can I see it?? and where??? > and please explain me that what's going on in above case?????? You need to figure out what you deleted by looking in pg_catalog, then attempt to access it. It'd be nice if there were a built-in tool or utility to verify a database catalog against the on-disk contents, but it's never supposed to be necessary. The need only arises when someone does something silly or when a file system goes bad - and in the latter case, who says it's the catalog that's correct? -- Craig Ringer