| From: | Sameer Kumar <sameer(dot)kumar(at)ashnik(dot)com> |
|---|---|
| To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
| Cc: | PostgreSQL General Discussion Forum <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Limiting user from changing its own attributes |
| Date: | 2015-04-11 21:11:24 |
| Message-ID: | CADp-Sm5Ra-cQe_HSJKRt0G+ESiQcCLLdBQoD9gDyd29bANCb3Q@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Sat, 11 Apr 2015 16:05 David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
wrote:
On Friday, April 10, 2015, Sameer Kumar <sameer(dot)kumar(at)ashnik(dot)com> wrote:
On Sat, Apr 11, 2015 at 12:57 AM David G. Johnston <
david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
On Fri, Apr 10, 2015 at 9:01 AM, Sameer Kumar <sameer(dot)kumar(at)ashnik(dot)com>
wrote:
Yes either an upper bound to which users can set their own values to.
Upper is somewhat easier but currently the system would only recognize a
global constraint.
Does it? Even though my work_mem in postgresql.conf is 1MB, the user can
alter itself to set its own work_mem to 1GB. Or did I interpret your
statement wrongly?
Pg_settings currently has an upper bound column - though it is a view and
that value cannot be changed that I know of.
I guess that upper bound column is more of the limit that is imposed by
system which you can have for a parameter i.e. the system imposed limit or
valid range if values for a parameter. I don't think one can update that.
But if it could I suspect that whatever catalog you would change to affect
it would only cause a global change. There is no alter database, role, or
postgresql way to change that value.
Oh ok... anyway of achieving that? There no EVENT trigger for "alter
user"?
David J.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ilya Ashchepkov | 2015-04-12 14:47:52 | Hot standby problems: consistent state not reached, no connection to master server. |
| Previous Message | Edson Carlos Ericksson Richter | 2015-04-11 14:08:38 | Has anyone used C-JDBC, HA-JDBC or SymmetricDB with PostgreSQL? |