------------------------------------------------------------------
Remote Subquery Scan on all
Output: id, name, (1 - id)
+ Sort Key: (1 - id)
-> Sort
Output: matest0.id, matest0.name, ((1 - matest0.id))
Sort Key: ((1 - matest0.id))
Output: matest2.id, matest2.name
-> Seq Scan on public.matest3
Output: matest3.id, matest3.name
-(16 rows)
+(17 rows)
select * from matest0 order by 1-id;
id | name
---------------------------------------------------------------------
Remote Subquery Scan on all
Output: id, name, (1 - id)
+ Sort Key: (1 - id)
-> Sort
Output: matest0.id, matest0.name, ((1 - matest0.id))
Sort Key: ((1 - matest0.id))
Output: matest2.id, matest2.name
-> Index Scan using matest3i on public.matest3
Output: matest3.id, matest3.name
-(16 rows)
+(17 rows)
select * from matest0 order by 1-id;
id | name