Triggers to allow user create table?

From: "CAJ CAJ" <pguser(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Triggers to allow user create table?
Date: 2007-05-27 20:50:12
Message-ID: 467669b30705271350l580c079dm3eb0ff2392a382f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Had a question on best approach with some security issues around on the fly
table creation by a user.

I want to users to create dynamic tables from the application. This means
that the user logged in should have create table privileges at the database
level. Assuming this is a security risk for allowing all users to have table
creation privileges. is it possible to create some sort of trigger to allow
the user to create table when ready and once it's done revoke it
automatically?

What is the best approach conceptual wise and security wise when dealing
with these situations? The less the user can do on the database the better
it is?

Thanks!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message ABHANG RANE 2007-05-27 21:25:51 cube
Previous Message Greg Quinn 2007-05-27 19:02:56 createdb.exe prompting for password on Vista