Skip to content

Typings for functions returning setof <table> #468

@jsbrain

Description

@jsbrain

Feature request

Is your feature request related to a problem? Please describe.

Currently, functions returning setof <table> aren't properly typed, e.g. returns unknown.

Describe the solution you'd like

I noticed that /functions endpoint already resolves the return_type properly to <table-name> so I'm not sure if this is actually a bug or just not implemented yet. As the tables types will already be generated anyways I imagine it should be "easy" to copy them over?

I wonder if this might be intentional, but I can't think of any reason why it would be. However, I don't want to rule out the possibility that I'm missing something here, and I'm curious about your opinion.

Describe alternatives you've considered

Manually casting the type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions