Re: psql: Add tab completion for \copy pstdin and pstdout

From: Kirill Reshke <reshkekirill(at)gmail(dot)com>
To: Srinath Reddy Sadipiralla <srinath2133(at)gmail(dot)com>
Cc: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql: Add tab completion for \copy pstdin and pstdout
Date: 2026-01-07 11:17:23
Message-ID: CALdSSPhJ956KnYJ+y9UyTajSgfiiyHWv+B8OPixD_02qEJYaSQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 7 Jan 2026 at 08:34, Srinath Reddy Sadipiralla
<srinath2133(at)gmail(dot)com> wrote:
>
> Hi,
>
> On Wed, Jan 7, 2026 at 6:06 AM Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> wrote:
>>
>> On Wed, Dec 31, 2025 at 1:40 AM Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp> wrote:
>> >
>> > Hi,
>> >
>> > Commit 02fd47db improved tab completion for COPY FROM and COPY TO by
>> > suggesting STDIN and STDOUT. How about also adding suggestions for
>> > pstdin and pstdout in the case of the \copy meta-command?
>> >
>> > I've attached a simple patch to add this.
>>
>> +1
>>
>> The patch is quite simple and looks good to me. I'll push it, barring
>> any objections.
>
>
> +1, I have reviewed it and LGTM.
>
> --
> Thanks,
> Srinath Reddy Sadipiralla
> EDB: https://www.enterprisedb.com/

Hi!
I changed CF entry [0] and changed status to RFC.
Patch looks good.

[0] https://commitfest.postgresql.org/patch/6365/

--
Best regards,
Kirill Reshke

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dewei Dai 2026-01-07 11:20:27 Fix typo in code comment
Previous Message Japin Li 2026-01-07 11:06:21 Re: Remove deprecated role membership options from psql help for CREATE USER/GROUP