Skip to content

PGAPPNAME environment variable causes permission error in Deno even when appname is passed in options #1078

@Jobians

Description

@Jobians

When using postgresjs in Deno without the --allow-env flag, I get this error:

NotCapable: Requires env access to "PGAPPNAME", run again with the --allow-env flag

This happens even though I pass the appname or application_name option explicitly in the connection parameters.

It seems the library reads the PGAPPNAME environment variable before applying the connection options, forcing Deno to require --allow-env permission.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions