From grajan@zeomega.com Mon Dec 16 13:09:52 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6848847580B for ; Mon, 16 Dec 2002 08:09:52 -0500 (EST) Received: from mail.zeomega.com (unknown [203.195.201.67]) by postgresql.org (Postfix) with ESMTP id 2D428474E53 for ; Mon, 16 Dec 2002 08:09:50 -0500 (EST) Received: from localhost (mail [127.0.0.1]) by mail.zeomega.com (Postfix) with ESMTP id F356E2C08B for ; Tue, 17 Dec 2002 00:10:25 +0530 (IST) Received: from winnt21 (unknown [192.168.1.1]) by mail.zeomega.com (Postfix) with SMTP id A690D2C089 for ; Tue, 17 Dec 2002 00:10:25 +0530 (IST) Message-ID: <003c01c2a505$614fe280$4501a8c0@zeomega.org> From: "Ganesh Rajan" To: Subject: hello gurus Date: Mon, 16 Dec 2002 18:46:44 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0039_01C2A533.7AD2B6A0" 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-Virus-Scanned: by AMaViS new-20020517 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/198 X-Sequence-Number: 6693 This is a multi-part message in MIME format. ------=_NextPart_000_0039_01C2A533.7AD2B6A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hello gurus, iam facing a problem....=20 1) my database needed somechanges like increase in width for a varchar data= type column... since there is no option like using "ALTER TABLE ...." i hav= e to drop the table & recreated.... so i did.... since the oid of this tabl= e is changed.... the tables & views referencing this table started to throw= error... what i did is that...i took the dump "pg_dump db_name > db_name.sql" .... a= nd edited the script file & dont with the changes...=20 is there any other way to change the structure...other than the way i done = with.. 2) i added another column to the table... now when i want to insert the val= ue for this column the the dump script file... how to add the value for thi= s column ...note: this column is my column in that table... Please help required..... Ganesh Rajan ------=_NextPart_000_0039_01C2A533.7AD2B6A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hello gurus,
 
iam facing a problem....
1) my d= atabase=20 needed somechanges like increase in width for a varchar datatype column... = since=20 there is no option like using "ALTER TABLE ...." i have to drop the table &= amp;=20 recreated.... so i did.... since the oid of this table is changed.... the t= ables=20 & views referencing this table started to throw error...
 
what i did is that...i took the dump "pg_d= ump=20 db_name > db_name.sql" .... and edited the script file & dont with t= he=20 changes...
is there any other way to change the=20 structure...other than the way i done with..
 
 
2) i added another column to the table... = now when=20 i want to insert the value for this column the the dump script file... how = to=20 add the value for this column ...note: this column is my column in that=20 table...
 
 
Please help required.....
 
 
Ganesh Rajan
------=_NextPart_000_0039_01C2A533.7AD2B6A0-- From mallah@trade-india.com Tue Dec 17 05:13:31 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 49F8C475D1C for ; Tue, 17 Dec 2002 00:13:31 -0500 (EST) Received: from rtlocal.trade-india.com (mail-relay.trade-india.com [203.196.129.235]) by postgresql.org (Postfix) with SMTP id A7930475CBC for ; Tue, 17 Dec 2002 00:13:14 -0500 (EST) Received: (qmail 23466 invoked from network); 17 Dec 2002 05:04:07 -0000 Received: from unknown (HELO system67.trade-india-local.com) (192.168.0.67) by infocom-236-129-del.trade-india.com with SMTP; 17 Dec 2002 05:04:07 -0000 From: "Rajesh Kumar Mallah." Organization: Infocom Network Limited. To: "Ganesh Rajan" , Subject: Re: hello gurus Date: Tue, 17 Dec 2002 10:47:01 +0530 User-Agent: KMail/1.5 References: <003c01c2a505$614fe280$4501a8c0@zeomega.org> In-Reply-To: <003c01c2a505$614fe280$4501a8c0@zeomega.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200212171047.01124.mallah@trade-india.com> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/219 X-Sequence-Number: 6714 On Monday 16 December 2002 06:46 pm, Ganesh Rajan wrote: > hello gurus, > > iam facing a problem.... > 1) my database needed somechanges like increase in width for a varchar > datatype column... since there is no option like using "ALTER TABLE ...." i > have to drop the table & recreated.... so i did.... since the oid of this > table is changed.... the tables & views referencing this table started to > throw error... you could have added a new column of reqd type, updated the new col with values from old col, dropped the old col and renamed the new col to old col. there was no need to drop entire table. > > what i did is that...i took the dump "pg_dump db_name > db_name.sql" .... > and edited the script file & dont with the changes... is there any other > way to change the structure...other than the way i done with.. > > > 2) i added another column to the table... now when i want to insert the > value for this column the the dump script file... how to add the value for > this column ...note: this column is my column in that table... the prev suggestion will help. > > > Please help required..... > > > Ganesh Rajan -- Rajesh Kumar Mallah, Project Manager (Development) Infocom Network Limited, New Delhi phone: +91(11)6152172 (221) (L) ,9811255597 (M) Visit http://www.trade-india.com , India's Leading B2B eMarketplace.