pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paragon Corporation <lr@pcorp.us>
To: pgsql-bugs@postgresql.org
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> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (8+ messages)  latest in thread

Message-ID: <269A184BAF85437AB5A7FEB076B7211E@O>
Permalink:  ../269A184BAF85437AB5A7FEB076B7211E@O/
Also on:    postgresql.org/message-id/269A184BAF85437AB5A7FEB076B7211E@O

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: lr@pcorp.us
  Subject: Re: BUG #11902: PostgreSQL 9.5 crashes on alter table in function seems to be fixed
  In-Reply-To: <269A184BAF85437AB5A7FEB076B7211E@O>
  References: <269A184BAF85437AB5A7FEB076B7211E@O>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox