Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id DF6881D123F2 for ; Thu, 15 Mar 2012 22:55:53 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S8MOR-0002J2-TP for pgsql-bugs@postgresql.org; Fri, 16 Mar 2012 01:55:53 +0000 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 q2G1tYd6020870; Thu, 15 Mar 2012 21:55:34 -0400 (EDT) To: vozhdb@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6533: postgre server crashes by create function (create table as) In-reply-to: References: Comments: In-reply-to vozhdb@gmail.com message dated "Thu, 15 Mar 2012 14:33:35 -0000" Date: Thu, 15 Mar 2012 21:55:34 -0400 Message-ID: <20869.1331862934@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/118 X-Sequence-Number: 32679 vozhdb@gmail.com writes: > The following bug has been logged on the website: > Bug reference: 6533 > Logged by: Alex Sanin > Email address: vozhdb@gmail.com > PostgreSQL version: 9.0.4 > Operating system: Windows XP sp3 > Description: > Here is the script: This script doesn't crash for me, in HEAD or 9.0 branch tip. Given the use of CREATE TABLE AS in a SQL function, I suspect that this is the same issue fixed in 9.0.7: Fix dangling pointer after CREATE TABLE AS/SELECT INTO in a SQL-language function (Tom Lane) In most cases this only led to an assertion failure in assert-enabled builds, but worse consequences seem possible. regards, tom lane