Re: Default ordering option - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: Default ordering option
Date
Msg-id bfefa5ba-ca12-6d94-647d-37d4cb22f99b@2ndquadrant.com
Whole thread Raw
In response to Re: Default ordering option  (Cyril Champier <cyril.champier@doctolib.com>)
Responses Re: Default ordering option
List pgsql-general
On 2019-07-25 09:43, Cyril Champier wrote:
>     It might be an interesting exercise to implement this as a post-parsing
>     hook.
> 
>  
> I known nothing about that, but that sounds interesting, do you have any
> documentation pointer to help me implement that?

Look for post_parse_analyze_hook.  Walk the parsed query tree, look for
queries without ordering clause and manufacture one.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-general by date:

Previous
From: Alban Hertroys
Date:
Subject: Re: Request for resolution || Support
Next
From: Cyril Champier
Date:
Subject: Re: Default ordering option