Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id DD8B52E0039 for ; Fri, 23 Nov 2007 02:40:28 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 08014-02 for ; Fri, 23 Nov 2007 02:40:24 -0400 (AST) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id E05692E0035 for ; Fri, 23 Nov 2007 02:40:25 -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 lAN6eLUn023160; Fri, 23 Nov 2007 01:40:21 -0500 (EST) To: Martin Marques cc: =?UTF-8?B?Um9kcmlnbyBEZSBMZcOzbg==?= , PostgreSQL SQL List Subject: Re: PL argument max size, and doubt In-reply-to: <4745F67B.7050800@marquesminen.com.ar> References: <4744313C.40107@marquesminen.com.ar> <47446F13.3090003@marquesminen.com.ar> <14547.1195668326@sss.pgh.pa.us> <4745F67B.7050800@marquesminen.com.ar> Comments: In-reply-to Martin Marques message dated "Thu, 22 Nov 2007 18:36:59 -0300" Date: Fri, 23 Nov 2007 01:40:21 -0500 Message-ID: <23159.1195800021@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/122 X-Sequence-Number: 29650 Martin Marques writes: > Tom Lane escribió: >> Martin Marques writes: >>> I have always heard that modification queries should be EXECUTED in PL. >>> AFAICR. >> >> Run far away from whatever source gave you that advice... > Sorry, it was with DDL commands. That's not much better ;-). DDL commands don't have plans, so there's not anything that could be invalidated. I don't see any reason to use an EXECUTE unless there's an actual textual change in the command you need to execute. regards, tom lane