From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Daniel LaMotte <lamotte85(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Stephen Frost <sfrost(at)snowman(dot)net>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Issue dumping schema using readonly user |
Date: | 2015-02-19 16:44:35 |
Message-ID: | 54E612F3.3000801@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 02/19/2015 01:46 AM, Daniel LaMotte wrote:
> Thank you all so much for the feedback.
>
> At this point, I'm convinced that the issue is more complicated than I
> originally thought :)
>
> FWIW, my use case is for a company internal database. I open the
> database up to all users by simply having a "readonly" user that anyone
> can use to connect to the database and run queries. Some tables have
> sensitive data in them that I would prefer not to allow users to simply
> have access to via this account. However, that said, there are internal
> people that we want to empower to develop our internal tool and so the
> idea is that they can take a database dump using the readonly user to
> replicate the schema in their own instance.
>
> I realize this usage may be quite specific to our company, but it seemed
> like the issue (as an outsider) was very simple.
FYI, using pgAdmin(http://www.pgadmin.org/) might be a solution. I just
tried it. I logged in as readonly and looked at the
mytable_is_not_readonly table. pgAdmin threw a permissions error, but
still showed the CREATE TABLE script in the SQL pane. Could be a way to
let your users get at the schema definitions.
>
> Just want to reiterate my thanks for taking the time to look into this
> issue and consider it. This was my first interaction with the Postgres
> community and it was an overwhelmingly good one!
>
> - Dan
>
>
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | brian | 2015-02-19 17:19:20 | Re: Some indexing advice for a Postgres newbie, please? |
Previous Message | Rob Sargent | 2015-02-19 16:30:57 | Re: Some indexing advice for a Postgres newbie, please? |