Please see attached a patch that finishes the support for currval. All the structure was in place in GTM but there was still one missing call in sequence.c when calling the function.
Now it is possible to get current values for sequences in the whole cluster.
Regards,
-- Michael Paquier NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center