Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 7D173452331 for ; Wed, 4 Jan 2012 15:17:34 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RiWL4-0000yr-RX for pgsql-bugs@postgresql.org; Wed, 04 Jan 2012 19:17:34 +0000 Received: from [204.145.120.229] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RiWKr-00088u-TM for pgsql-bugs@postgresql.org; Wed, 04 Jan 2012 19:17:18 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1RiWKr-00028P-KA for pgsql-bugs@postgresql.org; Wed, 04 Jan 2012 19:17:17 +0000 Date: Wed, 04 Jan 2012 19:17:17 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6379: SQL Function Causes Back-end Crash To: pgsql-bugs@postgresql.org From: pramsey@cleverelephant.ca X-Pg-Spam-Score: -3.8 (---) X-Archive-Number: 201201/22 X-Sequence-Number: 32089 The following bug has been logged on the website: Bug reference: 6379 Logged by: Paul Ramsey Email address: pramsey@cleverelephant.ca PostgreSQL version: 9.1.2 Operating system: OSX 10.6.8 Description: = CREATE OR REPLACE FUNCTION kill_backend() RETURNS VOID AS $$ DROP TABLE if EXISTS foo; CREATE TABLE foo AS SELECT * FROM pg_class LIMIT 1; $$ LANGUAGE 'SQL';