Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C0382475E40 for ; Thu, 9 Jan 2003 21:07:04 -0500 (EST) Received: from mill.mtholyoke.edu (mill.mtholyoke.edu [138.110.30.76]) by postgresql.org (Postfix) with ESMTP id 30F6B475D6E for ; Thu, 9 Jan 2003 21:07:04 -0500 (EST) Received: from mill.mtholyoke.edu (mill [127.0.0.1]) by mill.mtholyoke.edu (8.12.3/8.12.3/Debian -4) with ESMTP id h0A2770P009095 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=FAIL) for ; Thu, 9 Jan 2003 21:07:08 -0500 Received: (from yrp001@localhost) by mill.mtholyoke.edu (8.12.3/8.12.3/Debian -4) id h0A277V4009093 for pgsql-sql@postgresql.org; Thu, 9 Jan 2003 21:07:07 -0500 From: Ron Peterson Date: Thu, 9 Jan 2003 21:07:07 -0500 To: pgsql-sql@postgresql.org Subject: Re: insert rule doesn't see id field Message-ID: <20030110020707.GA9048@mtholyoke.edu> Mail-Followup-To: pgsql-sql@postgresql.org References: <20030107145422.GE12245@mtholyoke.edu> <13558.1041955268@sss.pgh.pa.us> <20030108181303.GA23456@mtholyoke.edu> <20030109191258.GA6739@mtholyoke.edu> <2930.192.168.1.16.1042142044.squirrel@mainbox.archonet.com> <20030109215056.GA7798@mtholyoke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030109215056.GA7798@mtholyoke.edu> User-Agent: Mutt/1.3.28i Organization: Mount Holyoke College X-Operating-System: Debian GNU/Linux X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/145 X-Sequence-Number: 11010 On Thu, Jan 09, 2003 at 04:50:56PM -0500, Ron Peterson wrote: > colindices = (int *) malloc (ncols * sizeof (int)); Of course we should verify that malloc succeeded... if (colindices == NULL) { elog (ERROR, "noupcol: malloc failed\n"); SPI_finish(); return PointerGetDatum (NULL); } -- Ron Peterson -o) Network & Systems Manager /\\ Mount Holyoke College _\_v http://www.mtholyoke.edu/~rpeterso ----