Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id F2AC82E1D81 for ; Fri, 4 Jan 2008 13:33:01 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 62333-01 for ; Fri, 4 Jan 2008 13:32:36 -0400 (AST) Received: from momjian.us (momjian.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id E11642E0307 for ; Fri, 4 Jan 2008 13:32:54 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id m04HWn924821; Fri, 4 Jan 2008 12:32:49 -0500 (EST) From: Bruce Momjian Message-Id: <200801041732.m04HWn924821@momjian.us> Subject: Re: Partitioning documentation example In-Reply-To: <17842.1199467559@sss.pgh.pa.us> To: Tom Lane Date: Fri, 4 Jan 2008 12:32:49 -0500 (EST) CC: Simon Riggs , PostgreSQL-documentation X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/5 X-Sequence-Number: 4734 Tom Lane wrote: > 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. Bummer. :-( -- Bruce Momjian http://momjian.us EnterpriseDB http://postgres.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +