Is it possible to change the natural order of columns in Postgres?

后端 未结 8 1716
既然无缘
既然无缘 2020-12-05 13:25

Is it possible to change the natural order of columns in Postgres 8.1?

I know that you shouldn\'t rely on column order - it\'s not essential to what I am do

相关标签:
8条回答
  • 2020-12-05 14:10

    I have asked that question in pgsql-admin in 2007. Tom Lane himself declared it practically unfeasible to change the order in the catalogs.

    • http://archives.postgresql.org/pgsql-admin/2007-06/msg00037.php

    Clarification: this applies for users with the present tools. Does not mean, it could not be implemented. IMO, it should be.
    Still true for Postgres 12.

    0 讨论(0)
  • 2020-12-05 14:14

    Unfortunately, no, it's not. Column order is entirely up to Postgres.

    0 讨论(0)
提交回复
热议问题