Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 524E8475AAC for ; Sat, 12 Oct 2002 06:49:33 -0400 (EDT) Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by postgresql.org (Postfix) with ESMTP id D60D5474E5C for ; Sat, 12 Oct 2002 06:49:31 -0400 (EDT) Received: from daithan (daithan.intranet.pspl.co.in [192.168.7.161]) by www.pspl.co.in (8.11.6/8.11.6) with ESMTP id g9CAnX307527 for ; Sat, 12 Oct 2002 16:19:33 +0530 From: "Shridhar Daithankar" To: PostgreSQL-development Date: Sat, 12 Oct 2002 16:20:03 +0530 MIME-Version: 1.0 Subject: Re: Changing Column Order (Was Re: MySQL vs PostgreSQL.) Reply-To: shridhar_daithankar@persistent.co.in Message-ID: <3DA84BB3.19627.31201C@localhost> References: In-reply-to: <200210120254.20255.list-pgsql-hackers@empires.org> X-mailer: Pegasus Mail for Windows (v4.02) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/557 X-Sequence-Number: 30326 On 12 Oct 2002 at 2:54, Jeff Davis wrote: > As far as I can tell, the order the attributes are returned makes no > difference in a client application, unless you're referencing attributes by > number. All applications that I've made or seen all use the name instead, and > I've never heard otherwise, or heard any advantage to using numbers to > reference columns. Even in that case you can obtain field number for a given name and vise versa.. > When someone asks, ask them "why?". I'd be interested to know if they have > some other reason. I would think that if they absolutely wanted to fine-tune > the order of columns they'd use a view (seems a little easier than > continually changing order around by individual SQL statements). Sounds fine but what is about that "continually changing"? A view needs a change only if it alters fields selected/tables to select from/selection criteria. Field order does not figure in there.. Bye Shridhar -- QOTD: "A child of 5 could understand this! Fetch me a child of 5."