Re: pg_ls_tmpdir to show directories and shared filesets (and pg_ls_*) - Mailing list pgsql-hackers

From Justin Pryzby
Subject Re: pg_ls_tmpdir to show directories and shared filesets (and pg_ls_*)
Date
Msg-id 20220313005601.GR28503@telsasoft.com
Whole thread Raw
In response to Re: pg_ls_tmpdir to show directories and shared filesets (and pg_ls_*)  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On Sun, Mar 13, 2022 at 09:45:35AM +0900, Michael Paquier wrote:
> On Wed, Mar 09, 2022 at 10:50:45AM -0600, Justin Pryzby wrote:
> > Rebased over 9e9858389 (Michael may want to look at the tuplestore part?).
> 
> Are you referring to the contents of 0003 here that changes the
> semantics of pg_ls_dir_files() regarding its setup call?

Yes, as it has this:

-       SetSingleFuncCall(fcinfo, SRF_SINGLE_USE_EXPECTED);
                                                                                                         
 
...
-       SetSingleFuncCall(fcinfo, 0);
                                                                                                         
 
...
+       if (flags & LS_DIR_METADATA)
                                                                                                         
 
+               SetSingleFuncCall(fcinfo, 0);
                                                                                                         
 
+       else
                                                                                                         
 
+               SetSingleFuncCall(fcinfo, SRF_SINGLE_USE_EXPECTED);
                                                                                                         
 

-- 
Justin



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pg_ls_tmpdir to show directories and shared filesets (and pg_ls_*)
Next
From: Chapman Flack
Date:
Subject: Re: range_agg with multirange inputs