Re: Re: [PATCH] Tab completion for ALTER DATABASE … SET TABLESPACE

2018-09-21 Thread Tom Lane
Thomas Munro writes: > On Fri, Sep 21, 2018 at 5:52 PM Andres Freund wrote: >> Here's a very quick-and-dirty implementation of this approach. Some very >> very brief testing seems to indicate it works, although I'm sure not >> perfectly. > And here is a quick-and-dirty variadic COMPLETE_WITH(...

Re: Re: [PATCH] Tab completion for ALTER DATABASE … SET TABLESPACE

2018-09-20 Thread Tom Lane
Thomas Munro writes: > . o O ( hmm, we now have variadic macros ) hmmm ... but even with variadic, C's macro facility is so weak that I'm not sure we can reimplement these with it. What would the expansion look like? (It constantly annoys me that C's so weak here. In the language I used for my