Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1buC8J-0002Ws-T2 for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Oct 2016 05:31:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1buC8J-0004gE-6m for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Oct 2016 05:31:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1buC5F-0003zL-Gp for pgsql-bugs@postgresql.org; Wed, 12 Oct 2016 05:28:05 +0000 Received: from mail.p1.com ([123.59.92.135]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1buC51-00020a-Bo for pgsql-bugs@postgresql.org; Wed, 12 Oct 2016 05:27:59 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.p1.com (Postfix) with ESMTP id 0BA191A3D90; Wed, 12 Oct 2016 13:27:36 +0800 (CST) Received: from mail.p1.com ([127.0.0.1]) by localhost (mail.p1.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id laDFMPALfn4W; Wed, 12 Oct 2016 13:27:35 +0800 (CST) Received: from localhost (localhost [127.0.0.1]) by mail.p1.com (Postfix) with ESMTP id F0AAC1A3BA0; Wed, 12 Oct 2016 13:27:34 +0800 (CST) X-Virus-Scanned: amavisd-new at mail.p1.com Received: from mail.p1.com ([127.0.0.1]) by localhost (mail.p1.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Zm1h6B2muMBw; Wed, 12 Oct 2016 13:27:34 +0800 (CST) Received: from mail.p1.com (mail.p1.com [123.59.92.135]) by mail.p1.com (Postfix) with ESMTP id 805731A3D90; Wed, 12 Oct 2016 13:27:34 +0800 (CST) Date: Wed, 12 Oct 2016 13:27:34 +0800 (CST) From: =?utf-8?B?5byg5ZiJ5b+X?= To: pgsql-bugs@postgresql.org Cc: backend , dba Message-ID: <176151950.16244873.1476250054458.JavaMail.zimbra@p1.com> In-Reply-To: <1560190516.16233092.1476249746147.JavaMail.zimbra@p1.com> Subject: got some errors after upgrade poestgresql from 9.5 to 9.6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 8.0.9_GA_6191 (ZimbraWebClient - SAF9.1 (Mac)/8.0.9_GA_6191) Thread-Topic: got some errors after upgrade poestgresql from 9.5 to 9.6 Thread-Index: 1K9c//B/WZLtr/XZV2G1d4Y77E1BAQ== X-Zimbra-DL: dba@p1.com, backend@p1.com X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi I am got a problem after upgrade poestgresql from 9.5 to 9.6 .it's occurred when calling an exits function . putong-contacts=# select insert_user_mobile_contact_hashes(4009, '', ARRAY['7bd94067bb0597bf995c4eb46364a4ce'], ARRAY['c55288a186d0e6f0e3fb3b66deb65366'], ARRAY[''], false); ERROR: table row type and query-specified row type do not match DETAIL: Query provides a value for a dropped column at ordinal position 6. CONTEXT: SQL statement "UPDATE c SET phone_number = phone_number_arr_[i], name = name_ WHERE user_id = user_id_ AND md5_hash11 = md5_hash11_arr_[i] AND coalesce(phone_number,'') = '' AND char_length(phone_number_arr_[i]) > 0" PL/pgSQL function insert_user_mobile_contact_hashes(integer,character varying,character varying[],character varying[],character varying[],boolean) line 36 at SQL statement and here is the column in this table be dropped putong-contacts=# select * from pg_attribute where attrelid = 'user_mobile_contact_hashes'::regclass and attisdropped; attrelid | attname | atttypid | attstattarget | attlen | attnum | attndims | attcacheoff | atttypmod | attbyval | attstorage | attalign | attnotnull | atthasdef | attisdropped | attislocal | attinhcount | attcollation | attacl | attoptions | attfdwoptions ----------+-------------------------------+----------+---------------+--------+--------+----------+-------------+-----------+----------+------------+----------+------------+-----------+--------------+------------+-------------+--------------+--------+------------+--------------- 6097850 | ........pg.dropped.6........ | 0 | 0 | 8 | 6 | 0 | -1 | -1 | f | p | d | f | f | t | t | 0 | 0 | | | 6097850 | ........pg.dropped.10........ | 0 | 0 | 1 | 10 | 0 | -1 | -1 | f | p | c | f | f | t | t | 0 | 0 | | | when i create this table user_mobile_contact_hashes , the function works well. i try to delete those 2 dropped column info from system catalog table , but it can't work and got other problems. putong-contacts=# select insert_user_mobile_contact_hashes(4009, '', ARRAY['7bd94067bb0597bf995c4eb46364a4ce'], ARRAY['c55288a186d0e6f0e3fb3b66deb65366'], ARRAY[''], false); ERROR: catalog is missing 2 attribute(s) for relid 6097850 Can you explain this issue and give me some advise how to handle this . thanks a lot . -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs