Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 65803B5DBDF for ; Thu, 14 Jul 2011 13:45:21 -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 41199-03 for ; Thu, 14 Jul 2011 16:45:13 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 0D1CAB5DBE2 for ; Thu, 14 Jul 2011 13:45:12 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id D9D64348048; Thu, 14 Jul 2011 09:45:12 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QOj2ieSbIidn; Thu, 14 Jul 2011 09:45:11 -0700 (PDT) Received: from perhan.alvh.no-ip.org (unknown [190.95.11.98]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id DD245348046; Thu, 14 Jul 2011 09:45:10 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 423DB6E307; Thu, 14 Jul 2011 12:45:08 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: Pg Bugs Subject: Re: Spurious errors relating to escaped single quotes From: Alvaro Herrera To: Gavin Flower In-reply-to: <4E1ED6BC.9020709@archidevsys.co.nz> References: <4E1ED6BC.9020709@archidevsys.co.nz> Date: Thu, 14 Jul 2011 12:45:08 -0400 Message-Id: <1310661849-sup-6899@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201107/119 X-Sequence-Number: 30731 Excerpts from Gavin Flower's message of jue jul 14 07:45:00 -0400 2011: > Hi, > > 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. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support