Skip to content

Comments

Allow alternate languages and behaviors in the create_function SQL helper#1136

Merged
jwoertink merged 1 commit intomainfrom
issues/1120
Jan 20, 2026
Merged

Allow alternate languages and behaviors in the create_function SQL helper#1136
jwoertink merged 1 commit intomainfrom
issues/1120

Conversation

@jwoertink
Copy link
Member

Fixes #1120

Previously it was always assumed you would be using Postgres, so the function would always be setup using plpgsql. That's still default, but now you can specify just sql if you want. However, it turns out that when using sql you can't have a BEGIN END, so I had to remove those. We also used to just use the default VOLATILE behavior, but if you needed to specify IMMUTABLE then you couldn't, but now you can.

@tuplebunny
Copy link

We also used to just use the default VOLATILE behavior, but if you needed to specify IMMUTABLE then you couldn't, but now you can.

happy dance

@jwoertink jwoertink merged commit f533f87 into main Jan 20, 2026
15 checks passed
@jwoertink jwoertink deleted the issues/1120 branch January 20, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

create_function migration helper needs "language" and "immutable" options

2 participants