Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0EFF0632674 for ; Sat, 19 Jun 2010 11:40:55 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 51663-01 for ; Sat, 19 Jun 2010 14:40:41 +0000 (UTC) X-Greylist: delayed 00:06:39.782764 by SQLgrey-1.7.6 Received: from smtp0.epfl.ch (smtp0.epfl.ch [128.178.224.219]) by mail.postgresql.org (Postfix) with SMTP id 6658C6323AE for ; Sat, 19 Jun 2010 11:40:43 -0300 (ADT) Received: (qmail 29143 invoked by uid 107); 19 Jun 2010 14:34:00 -0000 X-Virus-Scanned: ClamAV Received: from lanospc15.epfl.ch (128.178.34.60) (authenticated) by smtp0.epfl.ch (AngelmatoPhylax SMTP proxy); Sat, 19 Jun 2010 16:34:00 +0200 Message-ID: <4C1CD557.1070403@epfl.ch> Date: Sat, 19 Jun 2010 16:33:59 +0200 From: Teodor Macicas User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Inserting additional data into pg_statistics Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.51 tagged_above=-10 required=5 tests=BAYES_50=0.8, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/131 X-Sequence-Number: 34909 Hello everyone, I'm new here, but I have a problem and couldn't find a solution so I hope you will help me. I'm trying to reproduce the pg_statistics catalog from one database server to another one. To retrieve the data from the first server was a trivial job. The trouble was when I tryied to insert new record to pg_statistic table on the second server. To be more precise, I want to run this [0] query and I'm struggling with this error [1]. The query is generated by pg_dump. Anyways, it will be the same problem if I write the SQL statement by hand. So, has anyone any ideas how can I insert new record to pg_statistics system catalog ? [0] INSERT INTO pg_statistic VALUES ( 54655,1,0,26,-1,2,3,0,0,1058,1058,0,0,null,'{1}',null,null,'{"AFRICA ","AMERICA"}',null,null,null ); [1] SQL error: ERROR: cannot accept a value of type anyarray Thank you a lot. Looking forward for your replies. -Tedy