Skip to content

Server version detection #2002

Open
Open
@vitaly-t

Description

@vitaly-t

A question for the library's gurus...


Is there anything within the PostgreSQL connection protocol that would provide in indication as to the server's version and/or features, without having to execute SELECT version()?

Here's the thing: I need to auto-replace every SELECT * FROM proc_name() with CALL proc_name() - the new syntax added in PostgreSQL v11, so I need to know what server version we are connected to, without having to execute a separate SELECT version() for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions