Re: insert rule doesn't see id field - Mailing list pgsql-sql

From Ron Peterson
Subject Re: insert rule doesn't see id field
Date
Msg-id 20030110020707.GA9048@mtholyoke.edu
Whole thread Raw
In response to Re: insert rule doesn't see id field  (Ron Peterson <rpeterso@mtholyoke.edu>)
Responses Re: insert rule doesn't see id field  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
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   ---- 


pgsql-sql by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Getting sequence value after inserting many rows at a time
Next
From: Tom Lane
Date:
Subject: Re: insert rule doesn't see id field