Skip to content

pgspot fails to flag unqualified references after a CREATE/ALTER FUNCTION ... SET search_path #253

@tjgreen42

Description

@tjgreen42

Minimal repro:

  CREATE FUNCTION f() RETURNS int LANGUAGE sql
      SET search_path = pg_catalog, pg_temp
  AS $$ SELECT 1 $$;

  SELECT unsafe_call();          -- expected PS016, but silently passes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions