Skip to content

Allow creating PostgreSQL database "with owner" #3

@AnthonyMastrean

Description

@AnthonyMastrean

The PostgreSQL CREATE DATABASE statement requires a superuser account and the WITH OWNER clause allows you to change ownership to, say, a normal service account.

It would be super nice to have this option in the PostgresqlDatabase method to minimize the use of a superuser connection string.

            sqlCommandText = string.Format
                (
                    "create database \"{0}\";",
                    databaseName
                );

https://github.com/DbUp/DbUp/blob/master/src/dbup-postgresql/PostgresqlExtensions.cs#L189-L193

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Wishlist

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions