Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id A2B181337B47 for ; Mon, 28 Mar 2011 16:47:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 96160-10 for ; Mon, 28 Mar 2011 19:47:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id EAD06133616B for ; Mon, 28 Mar 2011 16:47:47 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p2SJlkZT028357; Mon, 28 Mar 2011 15:47:46 -0400 (EDT) To: "alex" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5950: backend terminating after altering table In-reply-to: <201103251337.p2PDbtWQ053513@wwwmaster.postgresql.org> References: <201103251337.p2PDbtWQ053513@wwwmaster.postgresql.org> Comments: In-reply-to "alex" message dated "Fri, 25 Mar 2011 13:37:55 +0000" Date: Mon, 28 Mar 2011 15:47:46 -0400 Message-ID: <28356.1301341666@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/366 X-Sequence-Number: 29876 "alex" writes: > Such steps: > 1. create table t ( > ); > 2. alter table t add childs t; > 3. alter table t add id serial not null primary key; > server closed the connection unexpectedly Thanks for the report. Fixed as per today's discussion (ie, disallow creating a self-referencing rowtype). regards, tom lane