Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id EDC20B5DBDA for ; Fri, 16 Sep 2011 14:10:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 25975-04 for ; Fri, 16 Sep 2011 17:10:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 3126DB5DCBF for ; Fri, 16 Sep 2011 14:10:56 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p8GHAus4071825 for ; Fri, 16 Sep 2011 17:10:56 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p8GHAuLK071824; Fri, 16 Sep 2011 17:10:56 GMT (envelope-from www) Date: Fri, 16 Sep 2011 17:10:56 GMT Message-Id: <201109161710.p8GHAuLK071824@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6212: PREPARE(pseudotype) should be blocked off From: "Caleb Welton" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201109/100 X-Sequence-Number: 31117 The following bug has been logged online: Bug reference: 6212 Logged by: Caleb Welton Email address: Caleb.Welton@emc.com PostgreSQL version: 9.0 Operating system: OSX Description: PREPARE(pseudotype) should be blocked off Details: statements such as: PREPARE p1(anyelement) AS SELECT quote_literal($1); PREPARE p2(internal) AS SELECT int2recv($1); Should not be allowed. They can result in peculiar behavior such as the following: execute p1('hello') ERROR: cannot display a value of type anyelement