Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 695EB9FB229 for ; Mon, 23 Oct 2006 17:02:31 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 97410-01 for ; Mon, 23 Oct 2006 20:02:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from lists.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id 450299FB26E for ; Mon, 23 Oct 2006 17:02:04 -0300 (ADT) Received: from alvh.no-ip.org (201-220-123-102.bk10-dsl.surnet.cl [201.220.123.102]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id k9NK25tY023270; Mon, 23 Oct 2006 13:02:06 -0700 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 24C63C2DC0D; Mon, 23 Oct 2006 17:02:01 -0300 (CLST) Date: Mon, 23 Oct 2006 17:02:01 -0300 From: Alvaro Herrera To: Zdenek Kotala Cc: pgsql-hackers@postgresql.org Subject: Re: COPY does not work with regproc and aclitem Message-ID: <20061023200200.GD11409@alvh.no-ip.org> Mail-Followup-To: Zdenek Kotala , pgsql-hackers@postgresql.org References: <453D1B73.2050906@sun.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <453D1B73.2050906@sun.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Mon, 23 Oct 2006 13:02:06 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.135 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200610/1235 X-Sequence-Number: 93132 Zdenek Kotala wrote: > I tried to use COPY command to export and import tables from catalog, > but COPY command has problem with data type regproc. See example > > create table test (like pg_aggregate); > copy pg_aggregate to '/tmp/pg_agg.out'; > copy test from '/tmp/pg_agg.out'; > > ERROR: more than one function named "pg_catalog.avg" > CONTEXT: COPY test, line 1, column aggfnoid: "pg_catalog.avg" Hmm, maybe it should be using regprocedure instead? That one emits type-qualified function names, IIRC. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support