title: How to change the position of column in postgresql without dumping
body: <p>I know the only workaround is to dump the table and then recreate the whole database with correct positioning of the required columns.</p>
  
  <p>But the problem is one of the columns is a foreign key to many tables in the database so it would not be possible to just delete the whole table. Also I cannot delete any column as the foreign key column lies to the last of the table. Please give me a solution.</p>
  
  <p>If this question is a duplicate please give me the link to the correct answer.</p>
  
  <p>edit: for more clarification i want to add rows using the insert command and the problem is the second last column is of the type serial. My main aim is to not touch the serial column while giving the insert command</p>