On Tue, Jun 13, 2006 at 04:28:47PM -0400, renneyt@xxxxxxxxx wrote: > Does pg_get_serial_sequence() exist as plpgsql code? Where may I find > it? I would like to retrofit it into a 7.4.8 PG database. No, but it shouldn't be terribly hard to do it in plpgsql; you just need to build the right sequence name (assuming you haven't been messing with the sequence names). -- Jim C. Nasby, Sr. Engineering Consultant jnasby@xxxxxxxxxxxxx Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461