Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

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: Sun, 27 May 2007 13:50:12 -0700
  • Message-id: <467669b30705271350l580c079dm3eb0ff2392a382f(at)mail(dot)gmail(dot)com>

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!


Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group