X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DACCCD990A; Tue, 27 Sep 2005 11:12:18 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 96170-01; Tue, 27 Sep 2005 14:12:03 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [64.139.89.126]) by svr1.postgresql.org (Postfix) with ESMTP id 3A6BAD9201; Tue, 27 Sep 2005 11:12:04 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id j8REC8u04704; Tue, 27 Sep 2005 10:12:08 -0400 (EDT) From: Bruce Momjian Message-Id: <200509271412.j8REC8u04704@candle.pha.pa.us> Subject: Re: [PERFORM] PostgreSQL overall design In-Reply-To: To: Gnanavel S Date: Tue, 27 Sep 2005 10:12:08 -0400 (EDT) Cc: pgsql-performance@postgresql.org, pgsql-hackers@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.01 required=5 tests=[AWL=0.010] X-Spam-Level: X-Archive-Number: 200509/1233 X-Sequence-Number: 73630 Have you read the developers FAQ? --------------------------------------------------------------------------- Gnanavel S wrote: > Hi All, > > Can anyone please tell/point me where I can get the postgresql system layout > (I've an interest to contribute). I would also like to know the files > involved for performing each task ( for eg when doing a select operation > what is exactly happening in postgres along with the files). > > I was wandering inside the source for a while and I couldn't get a start > point to go with. > > Need a clarification in copydir.c file of src/port directory, In the > following snippet the destination directory is created first then the source > directory is read. Suppose if I don't have permission to read the source, > even then the destination directory would be created. > I just want to know whether there is any reason for doing so? > > if (mkdir(todir, S_IRUSR | S_IWUSR | S_IXUSR) != 0) > ereport(ERROR, > (errcode_for_file_access(), > errmsg("could not create directory \"%s\": %m", todir))); > > xldir = AllocateDir(fromdir); > if (xldir == NULL) > ereport(ERROR, > (errcode_for_file_access(), > errmsg("could not open directory \"%s\": %m", fromdir))); > > > > -- > with thanks & regards, > S.Gnanavel > Satyam Computer Services Ltd. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073