Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 0B54E9FA24D for ; Tue, 18 Sep 2007 11:53:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 56802-01 for ; Tue, 18 Sep 2007 11:53:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by postgresql.org (Postfix) with ESMTP id 362C39FA22E for ; Tue, 18 Sep 2007 11:53:32 -0300 (ADT) Received: by fk-out-0910.google.com with SMTP id b27so1988325fka for ; Tue, 18 Sep 2007 07:53:30 -0700 (PDT) Received: by 10.82.146.14 with SMTP id t14mr7920936bud.1190127208588; Tue, 18 Sep 2007 07:53:28 -0700 (PDT) Received: by 10.82.161.12 with HTTP; Tue, 18 Sep 2007 07:53:28 -0700 (PDT) Message-ID: <428b865e0709180753t5f96c1eex2bed6d9d9a17c7fa@mail.gmail.com> Date: Tue, 18 Sep 2007 09:53:28 -0500 From: "Evan Carroll" To: "soni de" , pgsql-performance@postgresql.org Subject: Re: Regarding COPY command from Postgres 8.2.0 In-Reply-To: <9f2e40a90709172131g26d681a1pf030910a1793f791@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9f2e40a90709140321l11e6cdb5g91d8f8bf0a43fd01@mail.gmail.com> <20070914120321.GA2615@mail.planetcobalt.net> <9f2e40a90709172131g26d681a1pf030910a1793f791@mail.gmail.com> X-Google-Sender-Auth: 20b56b5261667c24 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.941 tagged_above=0 required=5 tests=AWL=0.185, BAYES_20=-0.74, NO_DNS_FOR_FROM=1.496 X-Spam-Level: X-Archive-Number: 200709/308 X-Sequence-Number: 26853 On 9/17/07, soni de wrote: > We have upgraded postgres from 7.2.4 to 8.2.0. This is one of the joys of 8.x over 7.2.x think of it like a different sql product rather than an "upgrade." Its foundations are different. 7.4.x is still supported, and would have been a smoother upgrade for you with less deprecations removed. To insert such a feature dependent on column order without it being implied in the spec would be surely be something deprecated quite quickly. > We have program which executes COPY command and our new database is changed > having some extra columns in some tables. > Because of this, COPY commands are failing. > So, we wanted the option to COPY the data without specifying column names. > The only way I can see a request, that allows for such bad-practice, being approved would be if you were to use the '*' operator elegantly; and, even then it would require you to update your code, only slightly to a lesser degree than writing the column names. Evan Carroll