In SERIAL columns the sequence depends on the column, so the association can be gathered from pg_depend.
Check for a relation between a sequence and column of a table where the deptype = 'i'. (Taken from pg_dump)
Thanks very much i will try it and comment the results here :)
-- Best regards
Carlos Guzmán Álvarez Vigo-Spain
---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])