Re: Allowing users to create objects in version controlled schema - Mailing list pgsql-admin

From Erik Wienhold
Subject Re: Allowing users to create objects in version controlled schema
Date
Msg-id 1103549459.284197.1667874591587@office.mailbox.org
Whole thread Raw
In response to Re: Allowing users to create objects in version controlled schema  (Wells Oliver <wells.oliver@gmail.com>)
Responses Re: Allowing users to create objects in version controlled schema
List pgsql-admin
> On 08/11/2022 02:19 CET Wells Oliver <wells.oliver@gmail.com> wrote:
>
> Feels like more of a process question and less of a technical postgres
> question.

You're right.  But I'm wondering what's possible on the technical front.

> In our world, each DB user has their own schema they have full access to, and
> can grant privileges as required.

Right, the standard approach with search_path = "$user".

> All schema definitions tables/views/etc are versioned using git in a structured
> repository of flat sql files. It works well. Table defs etc get code reviewed
> and deployed by more DB-minded engineers,

That's what I meant with version controlled migrations.  And I actually don't
want users to bypass that process to create and reference their own database
structures when those structures should rather be part of the common application
schema.

> and people are cognizant of writing optimized SQL.

That's where I have my doubts when it comes to inexperienced "devs" and no
guiding code reviews.

--
Erik



pgsql-admin by date:

Previous
From: Wells Oliver
Date:
Subject: Re: Allowing users to create objects in version controlled schema
Next
From: Bo Victor Thomsen
Date:
Subject: Re: Allowing users to create objects in version controlled schema