Skip to content

Improve postgres CREATE FUNCTION support #1405

Closed

Description

@wyozi

Hey,

I'm trying to parse CREATE FUNCTION statements (PostgreSQL) with the following attributes:

CREATE OR REPLACE FUNCTION public.accounting_ids()
 RETURNS SETOF uuid
 LANGUAGE plpgsql
 STABLE SECURITY DEFINER
 SET search_path TO ''
AS $function$

A few features fail to parse:

  1. SETOF [type] is not supported (Expected: end of statement, found: uuid at Line: 5, Column: 16)
  2. SECURITY DEFINER is not supported (Expected: end of statement, found: SECURITY at Line: 7, Column: 9)
  3. SET search_path TO '' is not supported (Expected: end of statement, found: SET at Line: 7, Column: 2)

Using sqlparser 0.50.0

Activity

  1. LucaCappelletti94 commented on Sep 23, 2026

    @LucaCappelletti94
    Contributor

    Completed by #2127 and #2217.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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