Hello, I need a idea to solve the following problem: I have a table which datasets are owned by th pg login user. If the pg user is deleted, the owner of the dataset should beset to null, that means that only a super user can access to the dataset. If the username is renamed the owner of the datasetis also renamed. I have found, that I can not setup a constraint to the pg_auth or to pg_user. The next problem I see, if I delete a userand add a new user with an equal username, the new user get access to the datasets of the old user. Can I create a referencefrom a table to the pg system table structurs, so that I get a "unique" user id and if the user id is removed, thefield in my table is set to null? Thanks Phil
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера