Hi Peter,
> > -> Seq Scan on dam (cost=0.00..5442.92 rows=132692 width=4)> select dam_id from dam order by dam_id desc limit 1;
Thanks alot. That did the trick.
Kind regards... Ralph ...