Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XtQm7-0004cf-G6 for pgsql-bugs@arkaria.postgresql.org; Wed, 26 Nov 2014 00:48:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XtQm7-0005Jd-0P for pgsql-bugs@arkaria.postgresql.org; Wed, 26 Nov 2014 00:48:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XtQm6-0005JW-2C for pgsql-bugs@postgresql.org; Wed, 26 Nov 2014 00:48:06 +0000 Received: from mail.pcorp.us ([204.51.253.130]) by magus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XtQm1-0000Ze-QW for pgsql-bugs@postgresql.org; Wed, 26 Nov 2014 00:48:04 +0000 Received: from O (50-78-240-110-static.hfc.comcastbusiness.net [50.78.240.110]) by mail.pcorp.us ; Tue, 25 Nov 2014 19:47:58 -0500 From: "Paragon Corporation" To: Subject: Re: BUG #11902: PostgreSQL 9.5 crashes on alter table in function seems to be fixed Date: Tue, 25 Nov 2014 19:47:51 -0500 Message-ID: <269A184BAF85437AB5A7FEB076B7211E@O> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AdAJEpuYVx7+TysmQl6+2FK7OY56Kw== X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7601.17609 X-Pg-Spam-Score: -1.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 I wasn't sure if you guys knew or not, but this bug I complained about http://www.postgresql.org/message-id/3367.1415311625@sss.pgh.pa.us That would crash with this piece of code seems to have gone CREATE OR REPLACE FUNCTION crash_test(table_name varchar, column_name varchar) RETURNS bigint AS $$ DECLARE var_result bigint; BEGIN EXECUTE 'ALTER TABLE ' || quote_ident(table_name) || ' ADD COLUMN ' || quote_ident(column_name) || ' text;'; var_result = (random()*100000)::bigint; RETURN var_result; END $$ LANGUAGE plpgsql VOLATILE COST 100; DROP TABLE IF EXISTS test_1; CREATE TABLE test_1(id serial primary key); DROP TABLE IF EXISTS test_crash; CREATE TEMP TABLE test_crash AS SELECT 1 As id, crash_test('test_1', 'lyr1') As layer; INSERT INTO test_crash(id, layer) SELECT id + 1, crash_test('test_1', 'lyr' || (id + 1)::text) FROM test_crash WHERE id = 1; -- I noticed it when our 9.5 weekly PostGIS bot tests started passing. I'm guessing its been fixed for a week or so. Thanks, Regina -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs