Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id B74AB9FA01A for ; Tue, 14 Aug 2007 13:18:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 40253-05-2 for ; Tue, 14 Aug 2007 13:18:13 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.186]) by postgresql.org (Postfix) with ESMTP id 5408D9F9FD1 for ; Tue, 14 Aug 2007 13:18:14 -0300 (ADT) Received: by rv-out-0910.google.com with SMTP id f1so1279120rvb for ; Tue, 14 Aug 2007 09:18:13 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JVbOkB5HeqNCiLIQG9XLtrSqTxp8pdIa//Neg8fwpnwX0CctHOh2NvpkbS5SRRYDxybgUlzdft5tmhCM5eMpGhwY5g8h9sol6OXWKWojops8sgy/cqUFfgQOpZv8l+CW/8k3hbLRDqEOPlzUm8a5EtePnUVeX9kvd83NZdV2qqQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jYBwFA5xlc936ZwholGubW0dRG9E1C9CZwbJALeI//QeXvEnM37Spfq+ka3HCRQ0neIelFfPx3mL2WexsbtQKDnVzMZOcWFVQns0iAu2qMulP0qNtFmm/yQfq8FZusb7Kuv/JE2OIRqFWE1AaruxTlesfTm32R7kKabc+0yuy4s= Received: by 10.140.162.4 with SMTP id k4mr3045299rve.1187108293100; Tue, 14 Aug 2007 09:18:13 -0700 (PDT) Received: by 10.141.98.12 with HTTP; Tue, 14 Aug 2007 09:18:13 -0700 (PDT) Message-ID: Date: Tue, 14 Aug 2007 11:18:13 -0500 From: "Scott Marlowe" To: "Hyatt, Gordon" Subject: Re: plpgsql question/problem Cc: pgsql-admin@postgresql.org In-Reply-To: <8EA62D1B324F0A438A36E8B5F0848EB8081053@jdcmail1.joslin.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8EA62D1B324F0A438A36E8B5F0848EB8081053@jdcmail1.joslin.harvard.edu> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/163 X-Sequence-Number: 26494 On 8/14/07, Hyatt, Gordon wrote: > Scott and Tom, > > Thanks for your replies. Yes, the missing select keyword was simply a typo on my part. > > The code that I sent was simplified (I didn't include all the fields, most of which are character varying). I've spent all day yesterday trying to make it work. (I'm not sure if I mentioned this, but I using 8.2.4 on Win2000 SP4). > > What else could be causing this code to correctly return the next sequence number but not insert anything into the table? Can you post a proven failure case? One that you can put into a nice freshly created db and it will fail? Without that, I can't think of much we can do to help.