Skip to content

feature: teach cargo pgrx schema how to emit just the SQL for named entities#2293

Open
eeeebbbbrrrr wants to merge 1 commit into
developfrom
pgrx-schema-extract
Open

feature: teach cargo pgrx schema how to emit just the SQL for named entities#2293
eeeebbbbrrrr wants to merge 1 commit into
developfrom
pgrx-schema-extract

Conversation

@eeeebbbbrrrr
Copy link
Copy Markdown
Contributor

I've found this feature super helpful in development of an extension.

This lets you run cargo pgrx schema some_sql_entity_name (like a type or function) and it emits to stdout the correct SQL for you to manually play into your development database to add that SQL entity to your database.

This is super helpful for cases where you add a new UDF and want to get it registered in your already-created extension rather than doing DROP EXTENSION and CREATE EXTENSION.

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.

1 participant