I'm converting a dB from Postgres to MySQL.
Since I cannot find a tool that does the trick itself, I'm going to convert all Postgres sequences to autoincrement ids in MySQL with autoincrement value.
So, how can I list all sequences in a Postgres DB (8.1 version) with information about the table in which it's used, the next value, etc with a SQL query?
Be aware that I can't use the information_schema.sequences view in the 8.4 release.