Generating sql to capture fully qualified table names???

From: smiley2211 <smiley2211(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Generating sql to capture fully qualified table names???
Date: 2007-10-19 16:44:30
Message-ID: 13298439.post@talk.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Erik Jones 2007-10-19 17:15:51 Re: Generating sql to capture fully qualified table names???
Previous Message Bob Pawley 2007-10-19 16:39:20 Temp Table