You will be happy to know that i managed to get my data imported.
I will clean up and comment my "migrain migrating application" and upload it here.
How does it work?
First you need a XAF application that is running an Access database and is giving you headaches because of the limitations on query size, constraint limitation among other things.
You add the npgsql ado.net provider from www.postgresql.com and change your connection in your app to a database within your PostgreSQL server
Run the app once, this should generate a fresh/clean database
Now what does the app do?
Provide it with the file location of your access database along with username and password should it have one
Provide your PostgreSQL Server, Database, Username and Password
When it processes it collects information on tables within your Access and PostgreSQL databases
It then checks for how many tables from Access are within your Postgre Database (this is due to each time you make changes to objects either by removing some or changing fields etc, you end up with alot of orphaned data)
It then goes through what ever tables are present in both databases
Turns off constraint triggers (as when inserting the data the constraints will fail due to the fact that the data is still being imported)
Inserts the new rows
Turns the constraint triggers back on
Seemed to work perfectly, all my data is present, XAF is working happily with all the data I had in Access within my PostgreSQL database!!!!!!!!
So stay tuned will have the application here for anyone else should they wish to move from Access to Postgre, in theory it wouldn't be too hard to change the application to make it move from any database to any database. Just need to know how the database system handles it's datatypes (ie. Access uses number like 6 to signify a numeric, 72 for a guid, 130 for varchar etc, whereas Postgre uses text like (varchar, bpchar, bytea, numeric, int4, int8, float, bool etc.)
If you do use it, drop us a line and let us know how you go... personally I think it would be good for a "mirgration" tool to be included with XAF or probably more correctly XPO, as the flexibility of "changing" databases with a couple of lines of code is brilliant.
Cheers,
Michael Proctor