Is there a way to tell what nextval('sequencename') returned? I have beendoing a seperate query to get it. But in production this would lead torace conditions.
Thanks,
David