D. Dante Lorenso wrote:
> I want the value of col0 returned to the application and I don't want to
> know the name of the sequence involved in the SERIAL column. I just want
> the value inserted into the column by using just it's column name.
Use pg_get_serial_sequence(). Don't use lastval() if you can help it,
because it's a foot gun.
--
Alvaro Herrera http://www.amazon.com/gp/registry/DXLWNGRJD34J
"I love the Postgres community. It's all about doing things _properly_. :-)"
(David Garamond)