Skip to content

Bindings for client information in Port #2157

@cbandy

Description

@cbandy

Postgres logs include information about the connected client from the global MyProcPort variable, which is allocated in TopMemoryContext. I want to read some of those fields from an emit_log_hook to be consistent with built-in log messages, but bindings for the Port type are not currently generated.

Because the type describes the connected client, it utilizes some GSS and SSL types, which cascade into several other dependencies. I'm not interested in those values, so I'm hopeful there's a way to access these fields without unnecessary includes:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions