X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 30C8252B42 for ; Tue, 31 May 2005 17:19:32 -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 71626-08 for ; Tue, 31 May 2005 20:19:20 +0000 (GMT) Received: from mr1.surnet.cl (smtp1.surnet.cl [216.155.73.162]) by svr1.postgresql.org (Postfix) with ESMTP id 3160552958 for ; Tue, 31 May 2005 17:09:20 -0300 (ADT) Received: from smtp1.surnet.cl (216.155.73.168) by mr1.surnet.cl (7.0.031.3) id 42587EDE00AE6779; Tue, 31 May 2005 16:08:51 -0400 Received: from smtp1.surnet.cl (mr1.surnet.cl []) by mr1.surnet.cl ([216.155.73.168]); Tue, 31 May 2005 20:08:51 +0000 Received: from cluster.surnet.cl (216.155.73.164) by smtp1.surnet.cl (7.0.031.3) id 42587C6E008F6AF4; Tue, 31 May 2005 16:08:51 -0400 Received: from localhost (216.155.79.202) by cluster.surnet.cl (7.0.024) id 4276578F003FD450; Tue, 31 May 2005 16:09:21 -0400 Received: by localhost (Postfix, from userid 1000) id BD99FD09034; Tue, 31 May 2005 16:09:28 -0400 (CLT) Date: Tue, 31 May 2005 16:09:28 -0400 From: Alvaro Herrera To: Vamsi Krishna G Cc: pgsql-admin@postgresql.org Subject: Re: Create relation Message-ID: <20050531200928.GE9257@surnet.cl> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.618 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, FORGED_RCVD_HELO X-Spam-Level: * X-Archive-Number: 200505/326 X-Sequence-Number: 17755 On Sat, May 28, 2005 at 02:23:05PM +0530, Vamsi Krishna G wrote: > i am new postgress.i need some help.i have pgs-8.0.3 source code. > i want to study pgs source code.can any body help which files should i > study and form where should i start .first of all i want to know how > CREATE RELATION is happening in pgsql.In which file i can find this. All server code is in src/backend. The parsing code is in src/backend/parser, and from there there is a complicated path that will lead to code in src/backend/tcop/utility.c, and from there to src/backend/commands/tablecmds.c (DefineRelation I think) This question is not on-topic in pgsql-admin anyway; you should be asking on -hackers, I think. Also, the name of the server is PostgreSQL; shortened to Postgres by historic reasons, to PgSQL sometimes, and even Pg. I haven't ever seen nobody use "pgs". -- Alvaro Herrera () "People get annoyed when you try to debug them." (Larry Wall)