Generating sql to capture fully qualified table names???

Поиск
Список
Период
Сортировка
От smiley2211
Тема Generating sql to capture fully qualified table names???
Дата
Msg-id 13298439.post@talk.nabble.com
обсуждение исходный текст
Ответы Re: Generating sql to capture fully qualified table names???  (Erik Jones <erik@myemma.com>)
Re: Generating sql to capture fully qualified table names???  (Osvaldo Rosario Kussama <osvaldo_kussama@yahoo.com.br>)
Список pgsql-general
Hello all,

I am using the query below to generate SQL code to grant access to objects -
how do I get this statement to PULL the fully qualified name
(schema.tablename)???

*****************
SELECT 'GRANT SELECT, INSERT, UPDATE, DELETE ON '  || relname ||
        ' TO newuser;'
          FROM pg_class
 where relname !~ 'pg_*' AND relkind in ('r','v','S') ORDER BY relname;

*****************

Thanks...Michelle :confused:


--
View this message in context:
http://www.nabble.com/Generating-sql-to-capture-fully-qualified-table-names----tf4654460.html#a13298439
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


В списке pgsql-general по дате отправления:

Предыдущее
От: Bob Pawley
Дата:
Сообщение: Temp Table
Следующее
От: Erik Jones
Дата:
Сообщение: Re: Generating sql to capture fully qualified table names???