Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C68D12E34FE for ; Fri, 4 Jan 2008 13:26:06 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 49230-01 for ; Fri, 4 Jan 2008 13:26:03 -0400 (AST) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 935512E304B for ; Fri, 4 Jan 2008 13:26:03 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id m04HPxYW017843; Fri, 4 Jan 2008 12:25:59 -0500 (EST) To: Bruce Momjian cc: Simon Riggs , PostgreSQL-documentation Subject: Re: Partitioning documentation example In-reply-to: <200801041527.m04FR7L19863@momjian.us> References: <200801041527.m04FR7L19863@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Fri, 04 Jan 2008 10:27:07 -0500" Date: Fri, 04 Jan 2008 12:25:59 -0500 Message-ID: <17842.1199467559@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/4 X-Sequence-Number: 4733 Bruce Momjian writes: > EXECUTE 'INSERT INTO measurement_y' || to_char(NEW.logdate,'YYYY_mMM') || ' VALUES (NEW.*)'; That won't actually work. Even if it did, I don't think we should be recommending use of EXECUTE here; the performance implications are bad. regards, tom lane