Re: Allowing users to create objects in version controlled schema

Поиск
Список
Период
Сортировка
От Erik Wienhold
Тема Re: Allowing users to create objects in version controlled schema
Дата
Msg-id 1103549459.284197.1667874591587@office.mailbox.org
обсуждение исходный текст
Ответ на Re: Allowing users to create objects in version controlled schema  (Wells Oliver <wells.oliver@gmail.com>)
Ответы Re: Allowing users to create objects in version controlled schema  (Bo Victor Thomsen <bo.victor.thomsen@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Wells Oliver
Дата:
Сообщение: Re: Allowing users to create objects in version controlled schema
Следующее
От: Bo Victor Thomsen
Дата:
Сообщение: Re: Allowing users to create objects in version controlled schema