Hrishikesh Deshmukh wrote: > Hello All, > > Suppose there 3 users red, green, blue. How can the user green know what > tables he has created?! > From psql command line \dt lists every table in the DB!!! > > Thanks in advance. > > Hrishi If you mean that the owner of the table(s) is the user "green", then try select * from pg_tables where tableowner='green';
> > Suppose there 3 users red, green, blue. How can the user green know what > > tables he has created?! > > From psql command line \dt lists every table in the DB!!! > > > > Thanks in advance. > > > > Hrishi > If you mean that the owner of the table(s) is the user "green", then try > select * from pg_tables where tableowner='green'; or from inside psql: \z
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера