On Mon, Nov 19, 2018 at 10:41:22AM +1100, Haribabu Kommi wrote: > So 6 new functions needs to be added to cover all the above cases, > IMO, we may need functions for all combinations, because I feel some > user may have the requirement of left out combination, in case if we choose > only some combinations.
That's bloating the interface in my opinion. Another choice #e would be to keep the function as not strict, but defaulting to the current database if NULL is used for the database ID and defaulting to the current user if NULL is used for the user ID. For the query ID, if NULL is given in output, process all queries matching with (database,user), removing nothing if there is no match. If the caller has set up a query ID the rest of the stats should not be touched. -- Michael
signature.asc
Description: PGP signature