The Heidi mechanism for reordering table columns does not work with Postgres (pg).
Looking at the pg forums, it appears that this has always been an issue in pg, and that the only real workaround is to re-create the table or a view using a query with the all of the columns in the required order. Tedious, with a lot of columns. But then again, does it really matter what the column order is?
I think column re-ordering functionality was included in MySQL as an extension.
Postgres: Reordering table columns.
In my opinion there could be two options as a workaround:
1) automatically change the order of columns in data view as it is now possible by hand (with the hint that the real column order @table isn't changed)
2) automatically create a temporary table with the new column order, import data in 'reordered' table, delete/rename (as backup) old table and rename the temporary table to the original name of the source table
It would be great if it would be integrated at some time, but because it is just a comfort feature as Roger already said a solution or feature deactivation when using Postgres is not a pressing issue.
1) automatically change the order of columns in data view as it is now possible by hand (with the hint that the real column order @table isn't changed)
2) automatically create a temporary table with the new column order, import data in 'reordered' table, delete/rename (as backup) old table and rename the temporary table to the original name of the source table
It would be great if it would be integrated at some time, but because it is just a comfort feature as Roger already said a solution or feature deactivation when using Postgres is not a pressing issue.
Code modification/commit
d2f3662
from ansgar.becker,
10 years ago,
revision 8.3.0.4837
Restrict column reordering to MySQL only. Not supported by MSSQL and PostgreSQL. See http://www.heidisql.com/forum.php?t=16328
Please login to leave a reply, or register at first.