Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqfPQ-0007WR-2D for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Apr 2016 11:26:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqfPP-00009e-HX for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Apr 2016 11:26:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aqfOm-0007sq-AX for pgsql-bugs@postgresql.org; Thu, 14 Apr 2016 11:25:24 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aqfOi-00089B-NA for pgsql-bugs@postgresql.org; Thu, 14 Apr 2016 11:25:23 +0000 Received: from msg.df7cb.de (benz.df7cb.de [IPv6:2001:6f8:10ee:e:134::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 3qlyyR18jxz3Dyp; Thu, 14 Apr 2016 13:25:19 +0200 (CEST) Date: Thu, 14 Apr 2016 13:25:18 +0200 From: Christoph Berg To: Andres Freund , PostgreSQL Bugs , Tom Lane Subject: Re: Bus error in pg_logical_slot_get_changes (9.4.7, sparc) Message-ID: <20160414112518.GE11804@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Andres Freund , PostgreSQL Bugs , Tom Lane References: <20160413211152.GA21711@msg.credativ.de> <20160413175827.dmlbtdf7c3mgmnex@alap3.anarazel.de> <20160414092919.GA11804@msg.df7cb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160414092919.GA11804@msg.df7cb.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -2.9 (--) 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 Re: To Andres Freund 2016-04-14 <20160414092919.GA11804@msg.df7cb.de> > > That fixed the contrib/test_decoding checks, thanks. > > Will do another full build over night to double check. > > ... the patch worked indeed, thanks! Duh, the patch does work on sparc, but it breaks amd64: *** /home/cbe/projects/postgresql/debian/9.4/build/../contrib/test_decoding/expected/ddl.out 2016-03-28 22:09:55.000000000 +0200 --- /home/cbe/projects/postgresql/debian/9.4/build/contrib/test_decoding/./regression_output/results/ddl.out 2016-04-14 13:12:45.310632488 +0200 *************** *** 189,201 **** FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0', 'skip-empty-xacts', '1') GROUP BY substring(data, 1, 24) ORDER BY 1,2; ! count | min | max ! -------+-------------------------------------------------+------------------------------------------------------------------------ ! 1 | BEGIN | BEGIN ! 1 | COMMIT | COMMIT ! 20467 | table public.tr_etoomuch: DELETE: id[integer]:1 | table public.tr_etoomuch: UPDATE: id[integer]:9999 data[integer]:-9999 ! (3 rows) ! -- check updates of primary keys work correctly BEGIN; CREATE TABLE spoolme AS SELECT g.i FROM generate_series(1, 5000) g(i); --- 189,195 ---- FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0', 'skip-empty-xacts', '1') GROUP BY substring(data, 1, 24) ORDER BY 1,2; ! ERROR: invalid memory alloc request size 94596654694480 -- check updates of primary keys work correctly BEGIN; CREATE TABLE spoolme AS SELECT g.i FROM generate_series(1, 5000) g(i); Christoph -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs