Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cBjnq-0005nF-4p for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Nov 2016 14:54:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cBjnp-0000Ya-95 for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Nov 2016 14:54:37 +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 1cBjnA-0008Gg-6C for pgsql-bugs@postgresql.org; Tue, 29 Nov 2016 14:53:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cBjn6-00054x-Rp for pgsql-bugs@postgresql.org; Tue, 29 Nov 2016 14:53:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uATErnMk006449; Tue, 29 Nov 2016 09:53:49 -0500 From: Tom Lane To: max.valjanski@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14439: Trigger function fails with internal error after upgrade to 9.6 In-reply-to: <20161129141639.6530.37563@wrigleys.postgresql.org> References: <20161129141639.6530.37563@wrigleys.postgresql.org> Comments: In-reply-to max.valjanski@gmail.com message dated "Tue, 29 Nov 2016 14:16:39 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <6447.1480431229.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 29 Nov 2016 09:53:49 -0500 Message-ID: <6448.1480431229@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) 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 max.valjanski@gmail.com writes: > # update ab_group set name=3D'Domain Controllerz' where id=3D466; > ERROR: table row type and query-specified row type do not match > =D0=9F=D0=9E=D0=94=D0=A0=D0=9E=D0=91=D0=9D=D0=9E=D0=A1=D0=A2=D0=98: Quer= y provides a value for a dropped column at ordinal > position 6. > =D0=9A=D0=9E=D0=9D=D0=A2=D0=95=D0=9A=D0=A1=D0=A2: SQL statement "UPDATE = ab_group SET name_gin =3D > to_tsvector('simple', NEW.name) WHERE id =3D NEW.id AND NEW.name <> > OLD.name" > PL/pgSQL function update_group_name_gin() line 4 at SQL statement Wait a minute ... the trigger is issuing another UPDATE on its own table? Aren't you risking an infinite recursion? Could we see the result of select attname,atttypid,attnum,attisdropped from pg_attribute where attrelid =3D 'ab_group'::regclass order by attnum; Also the exact definitions of all triggers and rules for that table. regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs