Thread

  1. Re: Support named (destination) portals in extended proto for psql meta commands.

    Jelte Fennema-Nio <postgres@jeltef.nl> — 2025-12-13T10:33:51Z

    On Sat, 13 Dec 2025 at 09:56, Kirill Reshke <reshkekirill@gmail.com> wrote:
    > And I faced a problem, that there is no way to test
    > extended query bind commands for non-empty destination portal. So, I
    > propose to add a psql meta command just for that purpose. Something
    > like \bind_cursor CURSOR_NAME STMT_NAME [params..]
    
    Probably call it bind_portal though. So far we've aligned the meta
    command names with the protocol/libpq names (e.g. \parse instead of
    \prepare)
    
    > So, sending non-empty portal names was never supported in libpq?
    > It makes me think there was a good reason for that. Can somebody
    > please clarify on that?
    
    No good reason, just no-one spent the time to implement it. libpq
    hasn't implemented most of the somewhat more exotic parts of the
    protocol. So yeah, addition is definitely welcome.