Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id D20D2B5DC3F for ; Thu, 14 Jul 2011 16:14:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 95941-08 for ; Thu, 14 Jul 2011 19:14:26 +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 76786B5DBCE for ; Thu, 14 Jul 2011 16:14:26 -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 p6EJEHmD007690; Thu, 14 Jul 2011 15:14:17 -0400 (EDT) To: Alvaro Herrera cc: Gavin Flower , Pg Bugs Subject: Re: Spurious errors relating to escaped single quotes In-reply-to: <1310661849-sup-6899@alvh.no-ip.org> References: <4E1ED6BC.9020709@archidevsys.co.nz> <1310661849-sup-6899@alvh.no-ip.org> Comments: In-reply-to Alvaro Herrera message dated "Thu, 14 Jul 2011 12:45:08 -0400" Date: Thu, 14 Jul 2011 15:14:17 -0400 Message-ID: <7689.1310670857@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=0.001 X-Spam-Level: X-Archive-Number: 201107/121 X-Sequence-Number: 30733 Alvaro Herrera writes: > Excerpts from Gavin Flower's message of jue jul 14 07:45:00 -0400 2011: >> Using pg 9.1beta3, I was found that running a function generated an >> error relating to escaped single quotes, yet still produced the answer I >> expected! > The errors are not spurious. The function doesn't exist now because it > didn't get created. What happened is that now your inserts are going > into the parent table, not the partitions as your script intended. Possibly a more useful answer is "your function appears to be assuming that standard_conforming_strings is OFF. As of 9.1 it's ON by default". regards, tom lane