Postgres default sort by id - worldship

后端 未结 4 1828
粉色の甜心
粉色の甜心 2020-12-10 01:52

I need to setup worldship to pull from one of our postgres databases. I need to have it so that the packages are sorted by id. I have no way (that i am aware of) of having w

4条回答
  •  死守一世寂寞
    2020-12-10 02:12

    Rows are returned in an unspecified order, per sql specs, unless you add an order by clause. In Postgres, that means you'll get rows in, basically, the order that live rows read on the disk.

    If you want a consistent order without needing to add an order by clause, create a view as suggested in Jack's comment.

提交回复
热议问题